public interface IndexFunctionsDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(String indexName,
String documentType,
String mapping,
String settings,
String alias)
The create index function will take as arguments the index name, document type, and mapping and will create a new index.
|
void |
createIndexDocument(String indexName,
String documentType,
String id,
String json)
The index function will take as arguments indexName, documentType, id, json and add the document to the index.
|
void |
createIndexDocuments(String indexName,
String documentType,
Map<String,String> documentMap)
The create index documents function will take as arguments the index name, document type, and a map of new documents.
|
void |
deleteDocumentById(String indexName,
String documentType,
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,
String documentType,
List<Integer> 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,
String documentType)
The ids in index function will take as arguments the index name and the document type 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 docs stats
|
long |
getNumberOfTypesInIndex(String indexName,
String documentType)
The number of types in index function will take as arguments the index name and the document type 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 documentType,
String id,
String json)
The isValid function will take as arguments indexName, documentType, id, json and validate the document against the index and return true if the document
is valid and false otherwise.
|
void |
updateIndexDocuments(String indexName,
String documentType,
Map<String,String> documentMap)
The update index documents function will take as arguments the index name, document type, and a map of documents to update.
|
void |
validateDocumentIndex(String indexName,
String documentType,
String id,
String json)
The validate function will take as arguments indexName, documentType, 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 documentType, String id, String json)
indexName - index namedocumentType - document typeid - idjson - jsonlong getNumberOfTypesInIndex(String indexName, String documentType)
indexName - index namedocumentType - document typeboolean isValidDocumentIndex(String indexName, String documentType, String id, String json)
indexName - index namedocumentType - doucment typeid - idjson - jsonvoid createIndexDocuments(String indexName, String documentType, Map<String,String> documentMap)
indexName - index namedocumentType - document typedocumentMap - document mapboolean isIndexExists(String indexName)
indexName - index namevoid deleteIndex(String indexName)
indexName - indexNamevoid validateDocumentIndex(String indexName, String documentType, String id, String json)
indexName - index namedocumentType - document typeid - idjson - jsonvoid createIndex(String indexName, String documentType, String mapping, String settings, String alias)
indexName - index namedocumentType - document typemapping - mappingsettings - settingalias - aliasvoid deleteDocumentById(String indexName, String documentType, String id)
indexName - index namedocumentType - document typeid - idvoid deleteIndexDocuments(String indexName, String documentType, List<Integer> ids)
indexName - documentType - ids - List<String> getIdsInIndex(String indexName, String documentType)
indexName - index namedocumentType - document typevoid updateIndexDocuments(String indexName, String documentType, Map<String,String> documentMap)
indexName - index namedocumentType - document typedocumentMap - document mapSettings getIndexSettings(String indexName)
indexName - index nameDocsStats getIndexStats(String indexName)
indexName - index nameCopyright © 2019. All rights reserved.