Class CompletionSuggester
java.lang.Object
co.elastic.clients.elasticsearch._core.search.SuggesterBase
co.elastic.clients.elasticsearch._core.search.CompletionSuggester
- All Implemented Interfaces:
SuggestVariant
,JsonpSerializable
,UnionVariant
@JsonpDeserializable public final class CompletionSuggester extends SuggesterBase implements SuggestVariant
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompletionSuggester.Builder
Builder forCompletionSuggester
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._core.search.SuggesterBase
SuggesterBase.AbstractBuilder<BuilderT extends SuggesterBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CompletionSuggester>
_DESERIALIZER
Json deserializer forCompletionSuggester
-
Constructor Summary
Constructors Constructor Description CompletionSuggester(CompletionSuggester.Builder builder)
CompletionSuggester(java.util.function.Function<CompletionSuggester.Builder,CompletionSuggester.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
_variantType()
Suggest
variant typejava.util.Map<java.lang.String,jakarta.json.JsonValue>
contexts()
API name:contexts
SuggestFuzziness
fuzzy()
API name:fuzzy
java.lang.String
prefix()
API name:prefix
java.lang.String
regex()
API name:regex
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCompletionSuggesterDeserializer(DelegatingDeserializer<CompletionSuggester.Builder> op)
java.lang.Boolean
skipDuplicates()
API name:skip_duplicates
Methods inherited from class co.elastic.clients.elasticsearch._core.search.SuggesterBase
analyzer, field, serialize, setupSuggesterBaseDeserializer, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._core.search.SuggestVariant
_toSuggest
-
Field Details
-
_DESERIALIZER
Json deserializer forCompletionSuggester
-
-
Constructor Details
-
CompletionSuggester
-
CompletionSuggester
public CompletionSuggester(java.util.function.Function<CompletionSuggester.Builder,CompletionSuggester.Builder> fn)
-
-
Method Details
-
_variantType
public java.lang.String _variantType()Suggest
variant type- Specified by:
_variantType
in interfaceUnionVariant
-
contexts
@Nullable public java.util.Map<java.lang.String,jakarta.json.JsonValue> contexts()API name:contexts
-
fuzzy
API name:fuzzy
-
prefix
@Nullable public java.lang.String prefix()API name:prefix
-
regex
@Nullable public java.lang.String regex()API name:regex
-
skipDuplicates
@Nullable public java.lang.Boolean skipDuplicates()API name:skip_duplicates
-
serializeInternal
- Overrides:
serializeInternal
in classSuggesterBase
-
setupCompletionSuggesterDeserializer
protected static void setupCompletionSuggesterDeserializer(DelegatingDeserializer<CompletionSuggester.Builder> op)
-