Class CompletionSuggester
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SuggesterBase
co.elastic.clients.elasticsearch.core.search.CompletionSuggester
- All Implemented Interfaces:
FieldSuggesterVariant,JsonpSerializable
@JsonpDeserializable
public class CompletionSuggester
extends SuggesterBase
implements FieldSuggesterVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.core.search.SuggesterBase
SuggesterBase.AbstractBuilder<BuilderT extends SuggesterBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CompletionSuggester>Json deserializer forCompletionSuggester -
Method Summary
Modifier and TypeMethodDescriptionFieldSuggester variant kind.final Map<String,List<CompletionContext>> contexts()A value, geo point object, or a geo hash string to filter or boost the suggestion on.final SuggestFuzzinessfuzzy()Enables fuzziness, meaning you can have a typo in your search and still get results back.static CompletionSuggesterfinal RegexOptionsregex()A regex query that expresses a prefix as a regular expression.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal BooleanWhether duplicate suggestions should be filtered out.Methods inherited from class co.elastic.clients.elasticsearch.core.search.SuggesterBase
analyzer, field, serialize, setupSuggesterBaseDeserializer, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.core.search.FieldSuggesterVariant
_toFieldSuggester
-
Field Details
-
_DESERIALIZER
Json deserializer forCompletionSuggester
-
-
Method Details
-
of
public static CompletionSuggester of(Function<CompletionSuggester.Builder, ObjectBuilder<CompletionSuggester>> fn) -
_fieldSuggesterKind
FieldSuggester variant kind.- Specified by:
_fieldSuggesterKindin interfaceFieldSuggesterVariant
-
contexts
A value, geo point object, or a geo hash string to filter or boost the suggestion on.API name:
contexts -
fuzzy
Enables fuzziness, meaning you can have a typo in your search and still get results back.API name:
fuzzy -
regex
A regex query that expresses a prefix as a regular expression.API name:
regex -
skipDuplicates
Whether duplicate suggestions should be filtered out.API name:
skip_duplicates -
serializeInternal
- Overrides:
serializeInternalin classSuggesterBase
-
setupCompletionSuggesterDeserializer
protected static void setupCompletionSuggesterDeserializer(ObjectDeserializer<CompletionSuggester.Builder> op)
-