Class PhraseOpenSearchSearchStrategy
java.lang.Object
io.jmix.search.searching.impl.AbstractSearchStrategy<org.opensearch.client.opensearch.core.SearchRequest.Builder,OpenSearchQueryConfigurer>
io.jmix.searchopensearch.searching.strategy.impl.AbstractOpenSearchStrategy
io.jmix.searchopensearch.searching.strategy.impl.PhraseOpenSearchSearchStrategy
- All Implemented Interfaces:
SearchStrategy<org.opensearch.client.opensearch.core.SearchRequest.Builder>,OpenSearchSearchStrategy
@Component("search_PhraseOpenSearchSearchStrategy")
public class PhraseOpenSearchSearchStrategy
extends AbstractOpenSearchStrategy
Class that encapsulates logic of
SearchStrategy that searches documents with at least one field
matches the entire phrase - all input words in provided order.-
Field Summary
Fields inherited from class io.jmix.search.searching.impl.AbstractSearchStrategy
queryConfigurer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureRequest(SearchRequestContext<org.opensearch.client.opensearch.core.SearchRequest.Builder> requestContext) Configures the provided search request context based on the current search strategy.getName()Provides the name of this search strategy.Methods inherited from class io.jmix.searchopensearch.searching.strategy.impl.AbstractOpenSearchStrategy
configureRequestMethods inherited from class io.jmix.search.searching.impl.AbstractSearchStrategy
toString
-
Constructor Details
-
PhraseOpenSearchSearchStrategy
-
-
Method Details
-
getName
Description copied from interface:SearchStrategyProvides the name of this search strategy. Name should be unique among all search strategies in application.- Returns:
- name
-
configureRequest
public void configureRequest(SearchRequestContext<org.opensearch.client.opensearch.core.SearchRequest.Builder> requestContext) Description copied from interface:SearchStrategyConfigures the provided search request context based on the current search strategy.- Parameters:
requestContext- theSearchRequestContextto configure, which provides the necessary metadata and state of the search preparation process. The type parameterTrepresents the platform-specific request builder associated with the context.
-