Class LuceneFormSearchEngine
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.search.LuceneFormSearchEngine
-
- All Implemented Interfaces:
IFormSearchEngine
public class LuceneFormSearchEngine extends java.lang.Object implements IFormSearchEngine
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAME
-
Constructor Summary
Constructors Constructor Description LuceneFormSearchEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Integer>getSearchResults(FormSearchConfig formSearchConfig)Get the id of the form responses based on a FormSearchConfig objjava.util.List<java.lang.Integer>getSearchResults(java.lang.String strSearchText)Get the id of the form responses based on a text to searchjava.util.List<FormResponseSearchItem>getSearchResults(java.util.List<IFormPanelInitializerQueryPart> listFormPanelInitializerQueryPart, java.util.List<IFormColumnQueryPart> listFormColumnQueryPart, java.util.List<IFormFilterQueryPart> listFormFilterQueryPart, FormItemSortConfig sortConfig, int nStartIndex, int nPageSize, FormPanel formPanel)Get the FormResponseSearchItem list based on given FormPanel, FormColumnList and FormFilterList
-
-
-
Field Detail
-
BEAN_NAME
public static final java.lang.String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSearchResults
public java.util.List<java.lang.Integer> getSearchResults(FormSearchConfig formSearchConfig)
Get the id of the form responses based on a FormSearchConfig obj- Specified by:
getSearchResultsin interfaceIFormSearchEngine- Returns:
- the list of form responses id based on given FormSearchConfig obj
-
getSearchResults
public java.util.List<java.lang.Integer> getSearchResults(java.lang.String strSearchText)
Get the id of the form responses based on a text to search- Specified by:
getSearchResultsin interfaceIFormSearchEngine- Parameters:
strSearchText- the searched text- Returns:
- the list of form responses id based on text to search
-
getSearchResults
public java.util.List<FormResponseSearchItem> getSearchResults(java.util.List<IFormPanelInitializerQueryPart> listFormPanelInitializerQueryPart, java.util.List<IFormColumnQueryPart> listFormColumnQueryPart, java.util.List<IFormFilterQueryPart> listFormFilterQueryPart, FormItemSortConfig sortConfig, int nStartIndex, int nPageSize, FormPanel formPanel)
Get the FormResponseSearchItem list based on given FormPanel, FormColumnList and FormFilterList- Specified by:
getSearchResultsin interfaceIFormSearchEngine- Returns:
- the list of FormResponseSearchItem
-
-