Package com.flowable.indexing
Class SearchServiceImpl
java.lang.Object
com.flowable.indexing.SearchServiceImpl
- All Implemented Interfaces:
SearchService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElasticsearchClientprotected IndexManagerprotected com.fasterxml.jackson.databind.ObjectMapperprotected List<LowLevelSearchResultEnhancer>protected IndexQueryTemplateResourceHelperFields inherited from interface com.flowable.indexing.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, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ResourceHelper resourceHelper, List<LowLevelSearchResultEnhancer> searchResultEnhancers) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.node.ObjectNodecreateCustomQueryForParameters(com.fasterxml.jackson.databind.JsonNode customFilter, String queryName, Map<String, ConfigParameter> configParameters, Map<String, Object> payload) com.fasterxml.jackson.databind.node.ObjectNodecreateCustomQueryForParameters(IndexMapping indexMapping, Map<String, Object> params) com.fasterxml.jackson.databind.node.ObjectNodecreateCustomQueryForParameters(String templateResource, 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) com.fasterxml.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 com.fasterxml.jackson.databind.node.ObjectNodehandleQueryWithCustomFilter(IndexMapping indexMapping, CustomIndexConfiguration customIndexConfiguration, Map<String, Object> params, Map<String, ConfigParameter> configParams) protected com.fasterxml.jackson.databind.node.ObjectNodehandleQueryWithCustomFilter(String indexMapping, String configName, Map<String, Object> params, Map<String, ConfigParameter> configParams) protected com.fasterxml.jackson.databind.node.ObjectNodehandleQueryWithTemplate(Map<String, Object> params, CustomIndexConfiguration customIndexConfiguration) protected com.fasterxml.jackson.databind.node.ObjectNodehandleQueryWithTemplate(Map<String, Object> params, String templateResource) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodequeryMultipleIndices(Set<String> indices, String queryBody) com.fasterxml.jackson.databind.node.ObjectNode
-
Field Details
-
elasticsearchClient
-
indexManager
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
searchResultEnhancers
-
templateResourceHelper
-
-
Constructor Details
-
SearchServiceImpl
public SearchServiceImpl(ElasticsearchClient elasticsearchClient, IndexManager indexManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ResourceHelper resourceHelper, List<LowLevelSearchResultEnhancer> searchResultEnhancers)
-
-
Method Details
-
queryMultipleIndices
public com.fasterxml.jackson.databind.JsonNode queryMultipleIndices(Set<String> indices, String queryBody) - Specified by:
queryMultipleIndicesin interfaceSearchService
-
query
- Specified by:
queryin interfaceSearchService
-
resolveCustomQuery
public com.fasterxml.jackson.databind.node.ObjectNode resolveCustomQuery(String indexName, String queryName, Map<String, Object> params) - Specified by:
resolveCustomQueryin interfaceSearchService
-
createCustomQueryForParameters
public com.fasterxml.jackson.databind.node.ObjectNode createCustomQueryForParameters(com.fasterxml.jackson.databind.JsonNode customFilter, String queryName, Map<String, ConfigParameter> configParameters, Map<String, Object> payload) - Specified by:
createCustomQueryForParametersin interfaceSearchService
-
createCustomQueryForParameters
public com.fasterxml.jackson.databind.node.ObjectNode createCustomQueryForParameters(String templateResource, Map<String, Object> payload) - Specified by:
createCustomQueryForParametersin interfaceSearchService
-
createCustomQueryForParameters
public com.fasterxml.jackson.databind.node.ObjectNode createCustomQueryForParameters(IndexMapping indexMapping, Map<String, Object> params) -
handleQueryWithCustomFilter
protected com.fasterxml.jackson.databind.node.ObjectNode handleQueryWithCustomFilter(IndexMapping indexMapping, CustomIndexConfiguration customIndexConfiguration, Map<String, Object> params, Map<String, ConfigParameter> configParams) -
handleQueryWithCustomFilter
-
handleQueryWithTemplate
protected com.fasterxml.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
-