Class BlogSearchService
- java.lang.Object
-
- fr.paris.lutece.plugins.blog.service.docsearch.BlogSearchService
-
public final class BlogSearchService extends java.lang.ObjectBlog Search Service
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIndexerAction(int nIdBlog, int nIdTask)Add Indexer Action to perform on a recordjava.util.List<IndexerAction>getAllIndexerActionByTask(int nIdTask)return a list of IndexerAction by task keystatic BlogSearchServicegetInstance()Get the HelpdeskSearchService instanceintgetSearchResults(BlogSearchFilter filter, java.util.List<java.lang.Integer> listIdBlog)Return search resultsjava.lang.StringprocessIndexing(boolean bCreate)Process indexingvoidremoveIndexerAction(int nIdAction)Remove a Indexer ActionvoidupdateDocument(Blog blog)
-
-
-
Method Detail
-
getInstance
public static BlogSearchService getInstance()
Get the HelpdeskSearchService instance- Returns:
- The
BlogSearchService
-
getSearchResults
public int getSearchResults(BlogSearchFilter filter, java.util.List<java.lang.Integer> listIdBlog)
Return search results- Parameters:
filter- The search filterlistIdBlog- Results as a collection of id of blog posts- Returns:
- The total number of items found
-
processIndexing
public java.lang.String processIndexing(boolean bCreate)
Process indexing- Parameters:
bCreate- true for start full indexing false for begin incremental indexing- Returns:
- the log
-
updateDocument
public void updateDocument(Blog blog)
-
addIndexerAction
public void addIndexerAction(int nIdBlog, int nIdTask)Add Indexer Action to perform on a record- Parameters:
nIdBlog- Blog idnIdTask- the key of the action to do
-
removeIndexerAction
public void removeIndexerAction(int nIdAction)
Remove a Indexer Action- Parameters:
nIdAction- the key of the action to remove
-
getAllIndexerActionByTask
public java.util.List<IndexerAction> getAllIndexerActionByTask(int nIdTask)
return a list of IndexerAction by task key- Parameters:
nIdTask- the task key- Returns:
- a list of IndexerAction
-
-