Class SearchServiceImpl
java.lang.Object
com.flowable.indexing.SearchServiceImpl
- All Implemented Interfaces:
SearchService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElasticsearchClientprotected IndexManagerprotected tools.jackson.databind.ObjectMapperprotected List<LowLevelSearchResultEnhancer> protected IndexQueryTemplateResourceHelperFields inherited from interface SearchService
CUSTOM_QUERY_CURRENT_GROUPS, CUSTOM_QUERY_CURRENT_TENANT_ID, CUSTOM_QUERY_CURRENT_TIME, CUSTOM_QUERY_CURRENT_USER_ID -
Constructor Summary
ConstructorsConstructorDescriptionSearchServiceImpl(ElasticsearchClient elasticsearchClient, IndexManager indexManager, tools.jackson.databind.ObjectMapper objectMapper, ResourceHelper resourceHelper, List<LowLevelSearchResultEnhancer> searchResultEnhancers) -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.node.ObjectNodecreateCustomQueryForParameters(IndexMapping indexMapping, Map<String, Object> params) tools.jackson.databind.node.ObjectNodecreateCustomQueryForParameters(String templateResource, Map<String, Object> payload) tools.jackson.databind.node.ObjectNodecreateCustomQueryForParameters(tools.jackson.databind.JsonNode customFilter, String queryName, Map<String, ConfigParameter> configParameters, Map<String, Object> payload) protected static Stringprotected static StringgetParamsStreamValue(String paramKey, Map<String, Object> params, ConfigParameter configParameter, String configName) protected StringgetParamsStringValue(String paramKey, Map<String, Object> params, ConfigParameter configParameter, String configName) tools.jackson.databind.node.ObjectNodegetSourceById(String index, String id) This queries by id and removes the boilerplate json (_shards, hits, etc) from the result: it only returns the _source element of the query result.protected StringgroupIdsToJsonArray(Set<String> groups) protected tools.jackson.databind.node.ObjectNodehandleQueryWithCustomFilter(IndexMapping indexMapping, CustomIndexConfiguration customIndexConfiguration, Map<String, Object> params, Map<String, ConfigParameter> configParams) protected tools.jackson.databind.node.ObjectNodehandleQueryWithCustomFilter(String indexMapping, String configName, Map<String, Object> params, Map<String, ConfigParameter> configParams) protected tools.jackson.databind.node.ObjectNodehandleQueryWithTemplate(Map<String, Object> params, CustomIndexConfiguration customIndexConfiguration) protected tools.jackson.databind.node.ObjectNodehandleQueryWithTemplate(Map<String, Object> params, String templateResource) tools.jackson.databind.JsonNodetools.jackson.databind.JsonNodequeryMultipleIndices(Set<String> indices, String queryBody) tools.jackson.databind.node.ObjectNode
-
Field Details
-
elasticsearchClient
-
indexManager
-
objectMapper
protected tools.jackson.databind.ObjectMapper objectMapper -
searchResultEnhancers
-
templateResourceHelper
-
-
Constructor Details
-
SearchServiceImpl
public SearchServiceImpl(ElasticsearchClient elasticsearchClient, IndexManager indexManager, tools.jackson.databind.ObjectMapper objectMapper, ResourceHelper resourceHelper, List<LowLevelSearchResultEnhancer> searchResultEnhancers)
-
-
Method Details
-
queryMultipleIndices
- Specified by:
queryMultipleIndicesin interfaceSearchService
-
query
- Specified by:
queryin interfaceSearchService
-
resolveCustomQuery
public tools.jackson.databind.node.ObjectNode resolveCustomQuery(String indexName, String queryName, Map<String, Object> params) - Specified by:
resolveCustomQueryin interfaceSearchService
-
createCustomQueryForParameters
public tools.jackson.databind.node.ObjectNode createCustomQueryForParameters(tools.jackson.databind.JsonNode customFilter, String queryName, Map<String, ConfigParameter> configParameters, Map<String, Object> payload) - Specified by:
createCustomQueryForParametersin interfaceSearchService
-
createCustomQueryForParameters
public tools.jackson.databind.node.ObjectNode createCustomQueryForParameters(String templateResource, Map<String, Object> payload) - Specified by:
createCustomQueryForParametersin interfaceSearchService
-
createCustomQueryForParameters
public tools.jackson.databind.node.ObjectNode createCustomQueryForParameters(IndexMapping indexMapping, Map<String, Object> params) -
handleQueryWithCustomFilter
protected tools.jackson.databind.node.ObjectNode handleQueryWithCustomFilter(IndexMapping indexMapping, CustomIndexConfiguration customIndexConfiguration, Map<String, Object> params, Map<String, ConfigParameter> configParams) -
handleQueryWithCustomFilter
-
handleQueryWithTemplate
protected tools.jackson.databind.node.ObjectNode handleQueryWithTemplate(Map<String, Object> params, CustomIndexConfiguration customIndexConfiguration) -
handleQueryWithTemplate
-
escape
-
escapeStringType
-
groupIdsToJsonArray
-
getParamsStringValue
-
getParamsStreamValue
-
getSourceById
Description copied from interface:SearchServiceThis queries by id and removes the boilerplate json (_shards, hits, etc) from the result: it only returns the _source element of the query result.- Specified by:
getSourceByIdin interfaceSearchService
-