public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
long |
count(String documentType,
Query q)
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 |
indexRepository(Repository repository)
Indexes all entities in a repository
|
SearchResult |
multiSearch(MultiSearchRequest request) |
void |
refresh()
Refresh indices
|
SearchResult |
search(SearchRequest request)
Search the index
|
Hit |
searchById(String documentType,
String id) |
void |
updateDocumentById(String documentType,
String documentId,
String updateScript)
update document by Id
|
void |
updateRepositoryIndex(Repository repository) |
boolean documentTypeExists(String documentType)
documentType - void indexRepository(Repository repository)
repository - void updateRepositoryIndex(Repository repository)
void deleteDocumentByIds(String documentType, List<String> documentIds)
documentType - documentId - void updateDocumentById(String documentType, String documentId, String updateScript)
documentType - documentId - updateScript - SearchResult search(SearchRequest request)
request - SearchResult multiSearch(MultiSearchRequest request)
long count(String documentType, Query q)
documentType - queryRules - void deleteDocumentsByType(String documentType)
indexname - void refresh()
Copyright © 2015. All Rights Reserved.