Class DocSearchService
java.lang.Object
fr.paris.lutece.plugins.document.service.docsearch.DocSearchService
DocumentSearchService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexerAction(int nIdDocument, int nIdTask) Add Indexer Action to perform on a recordgetAllIndexerActionByTask(int nIdTask) return a list of IndexerAction by task keystatic DocSearchServiceDeprecated, for removal: This API element is subject to removal in a future version.getSearchResults(String strQuery, boolean bTitle, boolean bSummary, String date, DocumentType documentType) Return advanced search resultsgetSearchResults(String strQuery, int nStartIndex, fr.paris.lutece.portal.business.user.AdminUser user) Return search resultsprocessIndexing(boolean bCreate) Indexing documents for searchingstatic voidRemove all Indexer ActionvoidremoveIndexerAction(int nIdAction) Remove a Indexer Action
-
Field Details
-
PATH_INDEX
- See Also:
-
PARAM_FORCING
- See Also:
-
PATTERN_DATE
- See Also:
-
PATTERN_DATE_IN_DATABASE
- See Also:
-
-
Constructor Details
-
DocSearchService
public DocSearchService()Creates a new instance of DocumentSearchService
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theDocSearchServiceinstance. This method will be removed in future versions.Returns the unique instance of theDocSearchServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theDocSearchServiceinstance instead.- Returns:
- The unique instance of
DocSearchService.
-
processIndexing
Indexing documents for searching- Parameters:
bCreate- tell if it's total indexing or total (total = true)- Returns:
- indexing logs
-
getSearchResults
public List<DocSearchItem> getSearchResults(String strQuery, int nStartIndex, fr.paris.lutece.portal.business.user.AdminUser user) Return search results- Parameters:
strQuery- The search querynStartIndex- The start indexuser- The user- Returns:
- Results as a collection of SarchItem
-
getSearchResults
public List<DocSearchItem> getSearchResults(String strQuery, boolean bTitle, boolean bSummary, String date, DocumentType documentType) Return advanced search results- Parameters:
strQuery- The search querybTitle- true for query in titlebSummary- true for query in summarydate- for filtering the result by datedocumentType- for filtering the result by type- Returns:
- Results as a collection of SarchItem
-
getAllIndexerActionByTask
return a list of IndexerAction by task key- Parameters:
nIdTask- the task key- Returns:
- a list of IndexerAction
-
removeIndexerAction
public void removeIndexerAction(int nIdAction) Remove a Indexer Action- Parameters:
nIdAction- the key of the action to remove
-
removeAllIndexerAction
public static void removeAllIndexerAction()Remove all Indexer Action -
addIndexerAction
public void addIndexerAction(int nIdDocument, int nIdTask) Add Indexer Action to perform on a record- Parameters:
nIdDocument- the document idnIdTask- the key of the action to do
-
@Injectto obtain theDocSearchServiceinstance.