@StableMinor(version="12.5", sinceVersion="8.1") public interface IBigDataIndexer
Modifier and Type | Method and Description |
---|---|
void |
addDocument(Document document)
Adds a document to the index.
|
void |
addOrUpdateDocument(Document document)
Adds or updates a document on the index.
|
void |
deleteDocument(DocumentType documentType,
Locale locale,
String documentId)
Deletes a document from the index with the given specifications.
|
void |
deleteDocumentsByFieldValue(String fieldId,
Collection<?> values)
Deletes documents that are matched by one of the given values in the field of given field
identifier.
|
void |
deleteDocumentsByFieldValue(String fieldId,
Object... values)
Deletes documents that are matched by one of the given values in the field of given field
identifier.
|
void |
deleteDocumentsByQuery(SearchQuery searchQuery)
Deletes documents that are matched by the given search query.
The search query's sorts ,
initial hit and maximum hit count will be
ignored. |
void |
updateDocumentsByQuerySync(SearchQuery searchQuery,
Map<String,Object> fieldValues)
Updates documents that matches a
SearchQuery updating their field values according to the
fieldValues map. |
void addDocument(Document document)
document
- the document
to be added.addOrUpdateDocument(Document)
void addOrUpdateDocument(Document document)
document
- the document
to be added.addDocument(Document)
void deleteDocument(DocumentType documentType, Locale locale, String documentId)
documentType
- the document's type.locale
- the document's locale as set in its standard
locale field. Must be null
if the document does not have a locale specified.documentId
- the document's identifier.void deleteDocumentsByFieldValue(String fieldId, Object... values)
fieldId
- the field identifier.values
- the values.void deleteDocumentsByFieldValue(String fieldId, Collection<?> values)
fieldId
- the field identifier.values
- the values.void deleteDocumentsByQuery(SearchQuery searchQuery)
sorts
,
initial hit
and maximum hit count
will be
ignored.searchQuery
- the search query.void updateDocumentsByQuerySync(SearchQuery searchQuery, Map<String,Object> fieldValues)
SearchQuery
updating their field values according to the
fieldValues
map.
This operation is synchronous in relation to the completion of the update execution. Searches performed after this method returns may not reflect the update, since internal optimizations and behavior of the underlying big data storage may demand some time for the update to be visible to searches.
searchQuery
- the search query.fieldValues
- a map where the key is a field's full identifier and the value is the value to be set on the
corresponding field. The value must be of a type compatible with the field type. If the value is null
,LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.