Class AllTermsAnyFieldOpenSearchSearchStrategy

java.lang.Object
io.jmix.search.searching.impl.AbstractSearchStrategy
io.jmix.searchopensearch.searching.strategy.impl.AllTermsAnyFieldOpenSearchSearchStrategy
All Implemented Interfaces:
SearchStrategy, OpenSearchSearchStrategy

@Deprecated(since="2.4", forRemoval=true) @Component("search_AllTermsAnyFieldOpenSearchSearchStrategy") public class AllTermsAnyFieldOpenSearchSearchStrategy extends AbstractSearchStrategy implements OpenSearchSearchStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
Describes SearchStrategy that searches documents with fields match all input terms in any order. Different terms can be present in different fields.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final SearchUtils
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureRequest(org.opensearch.client.opensearch.core.SearchRequest.Builder requestBuilder, SearchContext searchContext)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Configures OpenSearch SearchRequest.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Provides the name of this search strategy.

    Methods inherited from class io.jmix.search.searching.impl.AbstractSearchStrategy

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • searchUtils

      protected final SearchUtils searchUtils
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • AllTermsAnyFieldOpenSearchSearchStrategy

      public AllTermsAnyFieldOpenSearchSearchStrategy(SearchUtils searchUtils)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SearchStrategy
      Provides the name of this search strategy. Name should be unique among all search strategies in application.
      Specified by:
      getName in interface SearchStrategy
      Returns:
      name
    • configureRequest

      public void configureRequest(org.opensearch.client.opensearch.core.SearchRequest.Builder requestBuilder, SearchContext searchContext)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: OpenSearchSearchStrategy
      Configures OpenSearch SearchRequest.

      The main step - create appropriate query based on provided SearchContext and set it to request.

      Configuration of another request parameters is optional.

      Highlighting, size and offset shouldn't be configured here - these parameters will be overwritten.

      Specified by:
      configureRequest in interface OpenSearchSearchStrategy
      Parameters:
      requestBuilder - allows to configure search request
      searchContext - contains details about search being performed