Package org.opensearch.search.suggest.completion.context
package org.opensearch.search.suggest.completion.context
Support for limiting the completion suggesters results to within a "context" like a geographic location or a category.
-
ClassDescriptionA
ContextMapping
that uses a simple string as a criteria The suggestions are boosted and/or filtered by their associated category (string) value.Builder forCategoryContextMapping
Defines the query context forCategoryContextMapping
Builder for the category query contextContextBuilder<E extends ContextMapping<?>>Builder forContextMapping
ContextMapping<T extends org.opensearch.core.xcontent.ToXContent>AContextMapping
defines criteria that can be used to filter and/or boost suggestions at query time forCompletionFieldMapper
.The internal query contextType of context mappingContextMappings indexes context-enabled suggestion fields and creates context queries for definedContextMapping
s for aCompletionFieldMapper
AContextMapping
that uses a geo location/area as a criteria.Builder for geo context mappingDefines the query context forGeoContextMapping
Builder for the geo context