Package com.flowable.indexing
Interface SearchService
- All Known Implementing Classes:
SearchServiceImpl
public interface SearchService
Higher-level search client (vs the lower-level
ElasticsearchClient
, that knows about index aliases and will apply them.
Do note that no permission checks get added automatically when passing queries to the methods here.-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CUSTOM_QUERY_CURRENT_GROUPS
static java.lang.String
CUSTOM_QUERY_CURRENT_TENANT_ID
static java.lang.String
CUSTOM_QUERY_CURRENT_TIME
static java.lang.String
CUSTOM_QUERY_CURRENT_USER_ID
-
Method Summary
Modifier and Type Method Description com.fasterxml.jackson.databind.node.ObjectNode
getSourceById(java.lang.String index, java.lang.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.com.fasterxml.jackson.databind.JsonNode
query(java.lang.String index, java.lang.String queryBody)
com.fasterxml.jackson.databind.node.ObjectNode
resolveCustomQuery(java.lang.String indexName, java.lang.String queryName, java.util.Map<java.lang.String,java.lang.Object> params)
-
Field Details
-
CUSTOM_QUERY_CURRENT_USER_ID
static final java.lang.String CUSTOM_QUERY_CURRENT_USER_ID- See Also:
- Constant Field Values
-
CUSTOM_QUERY_CURRENT_GROUPS
static final java.lang.String CUSTOM_QUERY_CURRENT_GROUPS- See Also:
- Constant Field Values
-
CUSTOM_QUERY_CURRENT_TENANT_ID
static final java.lang.String CUSTOM_QUERY_CURRENT_TENANT_ID- See Also:
- Constant Field Values
-
CUSTOM_QUERY_CURRENT_TIME
static final java.lang.String CUSTOM_QUERY_CURRENT_TIME- See Also:
- Constant Field Values
-
-
Method Details
-
query
com.fasterxml.jackson.databind.JsonNode query(java.lang.String index, java.lang.String queryBody) -
resolveCustomQuery
com.fasterxml.jackson.databind.node.ObjectNode resolveCustomQuery(java.lang.String indexName, java.lang.String queryName, java.util.Map<java.lang.String,java.lang.Object> params) -
getSourceById
com.fasterxml.jackson.databind.node.ObjectNode getSourceById(java.lang.String index, java.lang.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.
-