Class AllTermsSingleFieldOpenSearchSearchStrategy
java.lang.Object
io.jmix.search.searching.impl.AbstractSearchStrategy
io.jmix.searchopensearch.searching.strategy.impl.AllTermsSingleFieldOpenSearchSearchStrategy
- All Implemented Interfaces:
SearchStrategy
,OpenSearchSearchStrategy
@Deprecated(since="2.4",
forRemoval=true)
@Component("search_AllTermsSingleFieldOpenSearchSearchStrategy")
public class AllTermsSingleFieldOpenSearchSearchStrategy
extends AbstractSearchStrategy
implements OpenSearchSearchStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
Describes
SearchStrategy
that searches documents with at least one field matches all input terms in any order.
Fields with partial match a not suitable.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SearchUtils
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionAllTermsSingleFieldOpenSearchSearchStrategy
(SearchUtils searchUtils) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 OpenSearchSearchRequest
.getName()
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
-
Field Details
-
searchUtils
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
AllTermsSingleFieldOpenSearchSearchStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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 interfaceSearchStrategy
- 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 OpenSearchSearchRequest
.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 interfaceOpenSearchSearchStrategy
- Parameters:
requestBuilder
- allows to configure search requestsearchContext
- contains details about search being performed
-