public interface IndexFunctionsDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(String indexName,
String mapping,
String settings,
String alias)
The create index function will take as arguments the index name, and mapping and will create a new index.
|
void |
createIndexDocument(String indexName,
String id,
String json)
The index function will take as arguments indexName, id, json and add the document to the index.
|
void |
createIndexDocuments(String indexName,
Map<String,String> documentMap)
The create index documents function will take as arguments the index name, and a map of new documents.
|
void |
deleteDocumentById(String indexName,
String id)
The delete document by id function will delete a document in the index by the document id.
|
void |
deleteIndex(String indexName)
The delete index function will take as an argument the index name and will delete the index.
|
void |
deleteIndexDocuments(String indexName,
List<Long> ids)
The delete index documents function will delete a list of document in the index by a list of document ids.
|
List<String> |
getIdsInIndex(String indexName)
The ids in index function will take as arguments the index name and will return a list of all the ids in the index.
|
Settings |
getIndexSettings(String indexName)
Get the index settings
|
DocsStats |
getIndexStats(String indexName)
Get index statistics
|
long |
getNumberOfTypesInIndex(String indexName)
The number of types in index function will take as arguments the index name and will return the number of documents in the index.
|
boolean |
isIndexExists(String indexName)
The index exists predicate will take as an argument the index name and will return tree if the index exists and false otherwise.
|
boolean |
isValidDocumentIndex(String indexName,
String id,
String json)
The isValid function will take as arguments indexName, id, json and validate the document against the index and return true if the document
is valid and false otherwise.
|
void |
updateIndexDocuments(String indexName,
Map<String,String> documentMap)
The update index documents function will take as arguments the index name and a map of documents to update.
|
void |
validateDocumentIndex(String indexName,
String id,
String json)
The validate function will take as arguments indexName, id, json and validate the document against the index.
|
delete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshvoid createIndexDocument(String indexName, String id, String json)
indexName - index nameid - idjson - jsonlong getNumberOfTypesInIndex(String indexName)
indexName - index nameboolean isValidDocumentIndex(String indexName, String id, String json)
indexName - index nameid - idjson - jsonvoid createIndexDocuments(String indexName, Map<String,String> documentMap)
indexName - index namedocumentMap - document mapboolean isIndexExists(String indexName)
indexName - index namevoid deleteIndex(String indexName)
indexName - indexNamevoid validateDocumentIndex(String indexName, String id, String json)
indexName - index nameid - idjson - jsonvoid createIndex(String indexName, String mapping, String settings, String alias)
indexName - index namemapping - mappingsettings - settingalias - aliasvoid deleteDocumentById(String indexName, String id)
indexName - index nameid - idvoid deleteIndexDocuments(String indexName, List<Long> ids)
indexName - the name of the index where the document exists.ids - the ids of the documents to delete.List<String> getIdsInIndex(String indexName)
indexName - index namevoid updateIndexDocuments(String indexName, Map<String,String> documentMap)
indexName - index namedocumentMap - document mapSettings getIndexSettings(String indexName)
indexName - index nameDocsStats getIndexStats(String indexName)
indexName - index nameCopyright © 2021. All rights reserved.