public interface LowLevelIndexingService
IndexingService
when possible. Only use this when you absolutely know what you're doing.Modifier and Type | Method and Description |
---|---|
default void |
addToBulkIndexRequest(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
com.fasterxml.jackson.databind.node.ObjectNode data) |
void |
addToBulkIndexRequest(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
com.fasterxml.jackson.databind.node.ObjectNode data,
String idFieldName) |
void |
deleteByQuery(String aliasName,
com.fasterxml.jackson.databind.node.ObjectNode query)
Delete indexed objects based on a query.
|
void |
deleteIndexedObject(String aliasName,
String id)
Delete the indexed object using the provided id.
|
default void |
indexObject(Object object)
Indexes the given object.
|
void |
indexObject(Object object,
String idFieldName)
Similar to
indexObject(Object) , but by providing an alternative field name that contains the id,
instead of depending on the IndexingJsonConstants.PROPERTY_ID in the json. |
void |
updateByQuery(String mappingType,
com.fasterxml.jackson.databind.node.ObjectNode data)
Perform Update by Query for the given Mapping type.
|
default void indexObject(Object object)
JsonNode
, no serialization will happen.
Register a custom ObjectSerializationService
to have custom object serialization.
Followings the following pattern for choosing how to index:
- If the object has an external version, index it
- If the object has a script, do an update with a script
- Otherwise, do an upsert update with the provided datavoid indexObject(Object object, String idFieldName)
indexObject(Object)
, but by providing an alternative field name that contains the id,
instead of depending on the IndexingJsonConstants.PROPERTY_ID
in the json.void deleteIndexedObject(String aliasName, String id)
void deleteByQuery(String aliasName, com.fasterxml.jackson.databind.node.ObjectNode query)
void updateByQuery(String mappingType, com.fasterxml.jackson.databind.node.ObjectNode data)
mappingType
- the type of the mapping for which the update should be donedata
- the update by query request datadefault void addToBulkIndexRequest(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, com.fasterxml.jackson.databind.node.ObjectNode data)
void addToBulkIndexRequest(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, com.fasterxml.jackson.databind.node.ObjectNode data, String idFieldName)
Copyright © 2019. All rights reserved.