Class CompletionContext
- java.lang.Object
-
- org.opensearch.client.opensearch.core.search.CompletionContext
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
@JsonpDeserializable public class CompletionContext extends java.lang.Object implements PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompletionContext.Builder
Builder forCompletionContext
.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CompletionContext>
_DESERIALIZER
Json deserializer forCompletionContext
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
boost()
API name:boost
Context
context()
Required - API name:context
java.util.List<GeoHashPrecision>
neighbours()
API name:neighbours
static CompletionContext
of(java.util.function.Function<CompletionContext.Builder,ObjectBuilder<CompletionContext>> fn)
GeoHashPrecision
precision()
API name:precision
java.lang.Boolean
prefix()
API name:prefix
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCompletionContextDeserializer(ObjectDeserializer<CompletionContext.Builder> op)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CompletionContext> _DESERIALIZER
Json deserializer forCompletionContext
-
-
Method Detail
-
of
public static CompletionContext of(java.util.function.Function<CompletionContext.Builder,ObjectBuilder<CompletionContext>> fn)
-
boost
@Nullable public final java.lang.Double boost()
API name:boost
-
context
public final Context context()
Required - API name:context
-
neighbours
public final java.util.List<GeoHashPrecision> neighbours()
API name:neighbours
-
precision
@Nullable public final GeoHashPrecision precision()
API name:precision
-
prefix
@Nullable public final java.lang.Boolean prefix()
API name:prefix
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupCompletionContextDeserializer
protected static void setupCompletionContextDeserializer(ObjectDeserializer<CompletionContext.Builder> op)
-
-