public class DocSearchService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_FORCING |
static String |
PATH_INDEX |
static String |
PATTERN_DATE |
Modifier and Type | Method and Description |
---|---|
void |
addIndexerAction(int nIdDocument,
int nIdTask)
Add Indexer Action to perform on a record
|
List<IndexerAction> |
getAllIndexerActionByTask(int nIdTask)
return a list of IndexerAction by task key
|
static DocSearchService |
getInstance()
The singleton
|
List<DocSearchItem> |
getSearchResults(String strQuery,
boolean bTitle,
boolean bSummary,
String date,
DocumentType documentType)
Return advanced search results
|
List<DocSearchItem> |
getSearchResults(String strQuery,
int nStartIndex,
fr.paris.lutece.portal.business.user.AdminUser user)
Return search results
|
String |
processIndexing(boolean bCreate)
Indexing documents for searching
|
static void |
removeAllIndexerAction()
Remove all Indexer Action
|
void |
removeIndexerAction(int nIdAction)
Remove a Indexer Action
|
public static final String PATH_INDEX
public static final String PARAM_FORCING
public static final String PATTERN_DATE
public static DocSearchService getInstance()
public String processIndexing(boolean bCreate)
bCreate
- tell if it's total indexing or total (total = true)public List<DocSearchItem> getSearchResults(String strQuery, int nStartIndex, fr.paris.lutece.portal.business.user.AdminUser user)
strQuery
- The search querynStartIndex
- The start indexuser
- The userpublic List<DocSearchItem> getSearchResults(String strQuery, boolean bTitle, boolean bSummary, String date, DocumentType documentType)
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 typepublic List<IndexerAction> getAllIndexerActionByTask(int nIdTask)
nIdTask
- the task keypublic void removeIndexerAction(int nIdAction)
nIdAction
- the key of the action to removepublic static void removeAllIndexerAction()
public void addIndexerAction(int nIdDocument, int nIdTask)
nIdDocument
- the document idnIdTask
- the key of the action to doCopyright © 2020 City of Paris. All rights reserved.