Class SuggestBase
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SuggestBase
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
CompletionSuggest,PhraseSuggest,TermSuggest
public abstract class SuggestBase extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSuggestBase.AbstractBuilder<BuilderT extends SuggestBase.AbstractBuilder<BuilderT>> -
Constructor Summary
Constructors Modifier Constructor Description protectedSuggestBase(SuggestBase.AbstractBuilder<?> builder) -
Method Summary
Modifier and Type Method Description intlength()Required - API name:lengthintoffset()Required - API name:offsetvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <BuilderT extends SuggestBase.AbstractBuilder<BuilderT>>
voidsetupSuggestBaseDeserializer(ObjectDeserializer<BuilderT> op)java.lang.Stringtext()Required - API name:textMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SuggestBase
-
-
Method Details
-
length
public final int length()Required - API name:length -
offset
public final int offset()Required - API name:offset -
text
public final java.lang.String text()Required - API name:text -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSuggestBaseDeserializer
protected static <BuilderT extends SuggestBase.AbstractBuilder<BuilderT>> void setupSuggestBaseDeserializer(ObjectDeserializer<BuilderT> op)
-