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 Details

  • Method Details

    • queryMultipleIndices

      com.fasterxml.jackson.databind.JsonNode queryMultipleIndices(Set<String> indices, String queryBody)
    • query

      com.fasterxml.jackson.databind.JsonNode query(String index, String queryBody)
    • resolveCustomQuery

      com.fasterxml.jackson.databind.node.ObjectNode resolveCustomQuery(String indexName, String queryName, Map<String,Object> params)
    • createCustomQueryForParameters

      com.fasterxml.jackson.databind.node.ObjectNode createCustomQueryForParameters(com.fasterxml.jackson.databind.JsonNode customFilter, String queryName, Map<String,ConfigParameter> configParameters, Map<String,Object> payload)
    • createCustomQueryForParameters

      com.fasterxml.jackson.databind.node.ObjectNode createCustomQueryForParameters(String templateResource, Map<String,Object> payload)
    • getSourceById

      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.