public class DirectorySearchService extends Object
Constructor and Description |
---|
DirectorySearchService()
Creates a new instance of DirectorySearchService
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexerAction(int nIdRecord,
int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add Indexer Action to perform on a record
|
List<IndexerAction> |
getAllIndexerActionByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return a list of IndexerAction by task key
|
String |
getAutocompleteResult(javax.servlet.http.HttpServletRequest request) |
static DirectorySearchService |
getInstance() |
org.apache.lucene.search.IndexSearcher |
getSearcher()
return searcher
|
List<Integer> |
getSearchResults(Directory directory,
HashMap<String,List<RecordField>> mapSearch,
Date dateCreation,
Date dateCreationBegin,
Date dateCreationEnd,
Date dateModification,
Date dateModificationBegin,
Date dateModificationEnd,
RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of record key return by the search
|
List<Integer> |
getSearchResults(Directory directory,
HashMap<String,List<RecordField>> mapSearch,
Date dateCreation,
Date dateCreationBegin,
Date dateCreationEnd,
RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of record key return by the search
|
String |
processIndexing(boolean bCreate)
Process indexing
|
void |
removeIndexerAction(int nIdAction,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a Indexer Action
|
void |
setSearcher(org.apache.lucene.search.IndexSearcher searcher)
set searcher
|
public DirectorySearchService()
public static DirectorySearchService getInstance()
public List<Integer> getSearchResults(Directory directory, HashMap<String,List<RecordField>> mapSearch, Date dateCreation, Date dateCreationBegin, Date dateCreationEnd, RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
directory
- the directorymapSearch
- a map which contains for each entry the list of
recorField(value of field search) associatedateCreation
- the creation datedateCreationBegin
- the date begin to search for the creation datedateCreationEnd
- the date end to search for the creation datefilter
- the filterplugin
- the pluginpublic List<Integer> getSearchResults(Directory directory, HashMap<String,List<RecordField>> mapSearch, Date dateCreation, Date dateCreationBegin, Date dateCreationEnd, Date dateModification, Date dateModificationBegin, Date dateModificationEnd, RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
directory
- the directorymapSearch
- a map which contains for each entry the list of
recorField(value of field search) associatedateCreation
- the creation datedateCreationBegin
- the date begin to search for the creation datedateCreationEnd
- the date end to search for the creation datedateModification
- the modification datedateModificationBegin
- the date begin to search for the
modification datedateModificationEnd
- the date end to search for the modification
datefilter
- the filterplugin
- the pluginpublic String getAutocompleteResult(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public String processIndexing(boolean bCreate)
bCreate
- true for start full indexing
false for begin incremental indexingpublic void addIndexerAction(int nIdRecord, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdRecord
- the id of the recordnIdTask
- the key of the action to doplugin
- the pluginpublic void removeIndexerAction(int nIdAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAction
- the key of the action to removeplugin
- the pluginpublic List<IndexerAction> getAllIndexerActionByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask
- the task ketyplugin
- the pluginpublic org.apache.lucene.search.IndexSearcher getSearcher()
public void setSearcher(org.apache.lucene.search.IndexSearcher searcher)
searcher
- searcherCopyright © 2016 City of Paris. All rights reserved.