Class PhraseElasticsearchSearchStrategy

java.lang.Object
io.jmix.search.searching.impl.AbstractSearchStrategy<co.elastic.clients.elasticsearch.core.SearchRequest.Builder,ElasticSearchQueryConfigurer>
io.jmix.searchelasticsearch.searching.strategy.impl.AbstractElasticSearchStrategy
io.jmix.searchelasticsearch.searching.strategy.impl.PhraseElasticsearchSearchStrategy
All Implemented Interfaces:
SearchStrategy<co.elastic.clients.elasticsearch.core.SearchRequest.Builder>, ElasticsearchSearchStrategy

@Component("search_PhraseElasticsearchSearchStrategy") public class PhraseElasticsearchSearchStrategy extends AbstractElasticSearchStrategy
Class that encapsulates logic of SearchStrategy that searches documents with at least one field matches the entire phrase - all input words in provided order.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: SearchStrategy
      Provides the name of this search strategy. Name should be unique among all search strategies in application.
      Returns:
      name
    • configureRequest

      public void configureRequest(SearchRequestContext<co.elastic.clients.elasticsearch.core.SearchRequest.Builder> requestContext)
      Description copied from interface: SearchStrategy
      Configures the provided search request context based on the current search strategy.
      Parameters:
      requestContext - the SearchRequestContext to configure, which provides the necessary metadata and state of the search preparation process. The type parameter T represents the platform-specific request builder associated with the context.