public class RecordIndexService extends Object implements Serializable
| Constructor and Description |
|---|
RecordIndexService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanTemporaryIndex() |
boolean |
hasIndexableNodes(EntityDefinition rootEntityDefn) |
boolean |
isInited() |
protected List<String> |
mergeSearchResults(int maxResults,
Collection<String> tempResult,
Collection<String> committedResult) |
void |
permanentlyIndex(CollectRecord record) |
List<String> |
search(RecordIndexManager.SearchType searchType,
Survey survey,
int attributeDefnId,
int fieldIndex,
String queryText,
int maxResults) |
protected List<String> |
sortResults(Collection<String> result) |
void |
temporaryIndex(CollectRecord record) |
public List<String> search(RecordIndexManager.SearchType searchType, Survey survey, int attributeDefnId, int fieldIndex, String queryText, int maxResults) throws RecordIndexException
RecordIndexExceptionpublic void temporaryIndex(CollectRecord record) throws RecordIndexException
RecordIndexExceptionpublic void permanentlyIndex(CollectRecord record)
public boolean hasIndexableNodes(EntityDefinition rootEntityDefn)
protected List<String> mergeSearchResults(int maxResults, Collection<String> tempResult, Collection<String> committedResult)
protected List<String> sortResults(Collection<String> result)
public void cleanTemporaryIndex()
throws RecordIndexException
RecordIndexExceptionpublic boolean isInited()
Copyright © 2020 Open Foris. All rights reserved.