public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
long |
count(String documentType,
List<QueryRule> queryRules)
Get the total hit count
|
void |
deleteDocumentByIds(String documentType,
List<String> documentIds)
delete documents by Ids
|
void |
deleteDocumentsByType(String documentType)
delete documentType from index
|
boolean |
documentTypeExists(String documentType)
Check if a type exists in the index
|
void |
indexTupleTable(String documentType,
TupleTable tupleTable)
Index a TupleTable
|
SearchResult |
search(SearchRequest request)
Search the index
|
void |
updateDocumentById(String documentType,
String documentId,
String updateScript)
update document by Id
|
void |
updateIndex(String documentType,
Iterable<? extends Entity> entities)
Insert or update entities in the index of a documentType
|
boolean documentTypeExists(String documentType)
documentType - void updateIndex(String documentType, Iterable<? extends Entity> entities)
documentType - entities - void deleteDocumentByIds(String documentType, List<String> documentIds)
documentType - documentId - void updateDocumentById(String documentType, String documentId, String updateScript)
documentType - documentId - updateScript - void indexTupleTable(String documentType, TupleTable tupleTable)
documentType - , teh documentType nametupleTable - SearchResult search(SearchRequest request)
request - long count(String documentType, List<QueryRule> queryRules)
documentType - queryRules - void deleteDocumentsByType(String documentType)
indexname - Copyright © 2013. All Rights Reserved.