Class AnyTermAnyFieldOpenSearchSearchStrategy
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.AnyTermAnyFieldOpenSearchSearchStrategy
- All Implemented Interfaces:
SearchStrategy<org.opensearch.client.opensearch.core.SearchRequest.Builder>,OpenSearchSearchStrategy
@Component("search_AnyTermAnyFieldOpenSearchSearchStrategy")
public class AnyTermAnyFieldOpenSearchSearchStrategy
extends AbstractOpenSearchStrategy
Class that encapsulates logic of
SearchStrategy that searches documents
with at least one field matches at least one input word.-
Field Summary
Fields inherited from class io.jmix.search.searching.impl.AbstractSearchStrategy
queryConfigurer -
Constructor Summary
ConstructorsConstructorDescriptionAnyTermAnyFieldOpenSearchSearchStrategy(OpenSearchQueryConfigurer queryConfigurator) -
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
-
AnyTermAnyFieldOpenSearchSearchStrategy
-
-
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.
-