|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.directory.service.directorysearch.DirectorySearchService
public class DirectorySearchService
DirectorySearchService
Constructor Summary | |
---|---|
DirectorySearchService()
Creates a new instance of DirectorySearchService |
Method Summary | |
---|---|
void |
addIndexerAction(int nIdRecord,
int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add Indexer Action to perform on a record |
java.util.List<IndexerAction> |
getAllIndexerActionByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return a list of IndexerAction by task key |
java.lang.String |
getAutocompleteResult(javax.servlet.http.HttpServletRequest request)
|
static DirectorySearchService |
getInstance()
|
org.apache.lucene.search.Searcher |
getSearcher()
return searcher |
java.util.List<java.lang.Integer> |
getSearchResults(Directory directory,
java.util.HashMap<java.lang.String,java.util.List<RecordField>> mapSearch,
java.util.Date dateCreation,
java.util.Date dateCreationBegin,
java.util.Date dateCreationEnd,
java.util.Date dateModification,
java.util.Date dateModificationBegin,
java.util.Date dateModificationEnd,
RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of record key return by the search |
java.util.List<java.lang.Integer> |
getSearchResults(Directory directory,
java.util.HashMap<java.lang.String,java.util.List<RecordField>> mapSearch,
java.util.Date dateCreation,
java.util.Date dateCreationBegin,
java.util.Date dateCreationEnd,
RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a list of record key return by the search |
java.lang.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.Searcher searcher)
set searcher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectorySearchService()
Method Detail |
---|
public static DirectorySearchService getInstance()
public java.util.List<java.lang.Integer> getSearchResults(Directory directory, java.util.HashMap<java.lang.String,java.util.List<RecordField>> mapSearch, java.util.Date dateCreation, java.util.Date dateCreationBegin, java.util.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 plugin
public java.util.List<java.lang.Integer> getSearchResults(Directory directory, java.util.HashMap<java.lang.String,java.util.List<RecordField>> mapSearch, java.util.Date dateCreation, java.util.Date dateCreationBegin, java.util.Date dateCreationEnd, java.util.Date dateModification, java.util.Date dateModificationBegin, java.util.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 plugin
public java.lang.String getAutocompleteResult(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
public java.lang.String processIndexing(boolean bCreate)
bCreate
- true for start full indexing
false for begin incremental indexing
public 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 java.util.List<IndexerAction> getAllIndexerActionByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask
- the task ketyplugin
- the plugin
public org.apache.lucene.search.Searcher getSearcher()
public void setSearcher(org.apache.lucene.search.Searcher searcher)
searcher
- searcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |