public final class BlogSearchService extends Object
Modifier and Type | Method and Description |
---|---|
void |
addIndexerAction(int nIdBlog,
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
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Get the analyzed of this search service
|
static BlogSearchService |
getInstance()
Get the HelpdeskSearchService instance
|
org.apache.lucene.search.IndexSearcher |
getSearcher()
return searcher
|
int |
getSearchResults(BlogSearchFilter filter,
List<Integer> listIdBlog)
Return search results
|
String |
processIndexing(boolean bCreate)
Process indexing
|
void |
removeIndexerAction(int nIdAction,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a Indexer Action
|
public static BlogSearchService getInstance()
BlogSearchService
public int getSearchResults(BlogSearchFilter filter, List<Integer> listIdBlog)
filter
- The search filternPageNumber
- The current pagenItemsPerPage
- The number of items per page to getlistIdAnnounces
- Results as a collection of id of announcespublic org.apache.lucene.search.IndexSearcher getSearcher()
public String processIndexing(boolean bCreate)
bCreate
- true for start full indexing false for begin incremental indexingpublic void addIndexerAction(int nIdBlog, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdBlog
- Blog idnIdTask
- 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 keyplugin
- the pluginpublic org.apache.lucene.analysis.Analyzer getAnalyzer()
Copyright © 2020 City of Paris. All rights reserved.