Package io.jmix.search.searching
Interface SearchStrategy<T>
- Type Parameters:
T- platform-specific request builder type
- All Known Subinterfaces:
ElasticsearchSearchStrategy,OpenSearchSearchStrategy
- All Known Implementing Classes:
AbstractElasticSearchStrategy,AbstractOpenSearchStrategy,AbstractSearchStrategy,AllTermsAnyFieldElasticsearchSearchStrategy,AllTermsAnyFieldOpenSearchSearchStrategy,AllTermsSingleFieldElasticsearchSearchStrategy,AllTermsSingleFieldOpenSearchSearchStrategy,AnyTermAnyFieldElasticsearchSearchStrategy,AnyTermAnyFieldOpenSearchSearchStrategy,PhraseElasticsearchSearchStrategy,PhraseOpenSearchSearchStrategy,StartsWithElasticsearchSearchStrategy,StartsWithOpenSearchSearchStrategy
public interface SearchStrategy<T>
Describes the way search context should be processed.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidconfigureRequest(SearchRequestContext<T> requestContext) Configures the provided search request context based on the current search strategy.getName()Provides the name of this search strategy.
-
Method Details
-
getName
String getName()Provides the name of this search strategy. Name should be unique among all search strategies in application.- Returns:
- name
-
configureRequest
Configures 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.
-