Class AnyTermAnyFieldElasticsearchSearchStrategy
java.lang.Object
io.jmix.search.searching.impl.AbstractSearchStrategy
io.jmix.searchelasticsearch.searching.strategy.impl.AnyTermAnyFieldElasticsearchSearchStrategy
- All Implemented Interfaces:
- SearchStrategy,- ElasticsearchSearchStrategy
@Component("search_AnyTermAnyFieldElasticsearchSearchStrategy")
public class AnyTermAnyFieldElasticsearchSearchStrategy
extends AbstractSearchStrategy
implements ElasticsearchSearchStrategy
Class that encapsulates logic of 
SearchStrategy that searches documents
 with at least one field matches at least one input word.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigureRequest(co.elastic.clients.elasticsearch.core.SearchRequest.Builder requestBuilder, SearchContext searchContext) Configures ElasticsearchSearchRequest.getName()Provides the name of this search strategy.Methods inherited from class io.jmix.search.searching.impl.AbstractSearchStrategytoString
- 
Field Details- 
searchUtils
 
- 
- 
Constructor Details- 
AnyTermAnyFieldElasticsearchSearchStrategy
 
- 
- 
Method Details- 
getNameDescription copied from interface:SearchStrategyProvides the name of this search strategy. Name should be unique among all search strategies in application.- Specified by:
- getNamein interface- SearchStrategy
- Returns:
- name
 
- 
configureRequestpublic void configureRequest(co.elastic.clients.elasticsearch.core.SearchRequest.Builder requestBuilder, SearchContext searchContext) Description copied from interface:ElasticsearchSearchStrategyConfigures ElasticsearchSearchRequest.The main step - create appropriate query based on provided SearchContextand 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:
- configureRequestin interface- ElasticsearchSearchStrategy
- Parameters:
- requestBuilder- allows to configure search request
- searchContext- contains details about search being performed
 
 
-