Package com.flowable.indexing
Class SearchServiceImpl
java.lang.Object
com.flowable.indexing.SearchServiceImpl
- All Implemented Interfaces:
SearchService
-
Field Summary
Modifier and TypeFieldDescriptionprotected ElasticsearchClient
protected IndexManager
protected com.fasterxml.jackson.databind.ObjectMapper
protected List<LowLevelSearchResultEnhancer>
protected IndexQueryTemplateResourceHelper
Fields 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
ConstructorDescriptionSearchServiceImpl
(ElasticsearchClient elasticsearchClient, IndexManager indexManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ResourceHelper resourceHelper, List<LowLevelSearchResultEnhancer> searchResultEnhancers) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.node.ObjectNode
createCustomQueryForParameters
(com.fasterxml.jackson.databind.JsonNode customFilter, String queryName, Map<String, ConfigParameter> configParameters, Map<String, Object> payload) com.fasterxml.jackson.databind.node.ObjectNode
createCustomQueryForParameters
(IndexMapping indexMapping, Map<String, Object> params) com.fasterxml.jackson.databind.node.ObjectNode
createCustomQueryForParameters
(String templateResource, Map<String, Object> payload) protected static String
protected static String
getParamsStreamValue
(String paramKey, Map<String, Object> params, ConfigParameter configParameter, String configName) protected String
getParamsStringValue
(String paramKey, Map<String, Object> params, ConfigParameter configParameter, String configName) com.fasterxml.jackson.databind.node.ObjectNode
getSourceById
(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 String
groupIdsToJsonArray
(Set<String> groups) protected com.fasterxml.jackson.databind.node.ObjectNode
handleQueryWithCustomFilter
(IndexMapping indexMapping, CustomIndexConfiguration customIndexConfiguration, Map<String, Object> params, Map<String, ConfigParameter> configParams) protected com.fasterxml.jackson.databind.node.ObjectNode
handleQueryWithCustomFilter
(String indexMapping, String configName, Map<String, Object> params, Map<String, ConfigParameter> configParams) protected com.fasterxml.jackson.databind.node.ObjectNode
handleQueryWithTemplate
(Map<String, Object> params, CustomIndexConfiguration customIndexConfiguration) protected com.fasterxml.jackson.databind.node.ObjectNode
handleQueryWithTemplate
(Map<String, Object> params, String templateResource) com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode
queryMultipleIndices
(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:
queryMultipleIndices
in interfaceSearchService
-
query
- Specified by:
query
in interfaceSearchService
-
resolveCustomQuery
public com.fasterxml.jackson.databind.node.ObjectNode resolveCustomQuery(String indexName, String queryName, Map<String, Object> params) - Specified by:
resolveCustomQuery
in 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:
createCustomQueryForParameters
in interfaceSearchService
-
createCustomQueryForParameters
public com.fasterxml.jackson.databind.node.ObjectNode createCustomQueryForParameters(String templateResource, Map<String, Object> payload) - Specified by:
createCustomQueryForParameters
in 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:SearchService
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.- Specified by:
getSourceById
in interfaceSearchService
-