Class SparseVectorIndexOptions
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.SparseVectorIndexOptions
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class SparseVectorIndexOptions
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SparseVectorIndexOptions>Json deserializer forSparseVectorIndexOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic SparseVectorIndexOptionsfinal Booleanprune()Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.final TokenPruningConfigOptional pruning configuration.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forSparseVectorIndexOptions
-
-
Method Details
-
of
public static SparseVectorIndexOptions of(Function<SparseVectorIndexOptions.Builder, ObjectBuilder<SparseVectorIndexOptions>> fn) -
prune
Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance. If prune is true but the pruning_config is not specified, pruning will occur but default values will be used. Default: falseAPI name:
prune -
pruningConfig
Optional pruning configuration. If enabled, this will omit non-significant tokens from the query in order to improve query performance. This is only used if prune is set to true. If prune is set to true but pruning_config is not specified, default values will be used.API name:
pruning_config -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSparseVectorIndexOptionsDeserializer
protected static void setupSparseVectorIndexOptionsDeserializer(ObjectDeserializer<SparseVectorIndexOptions.Builder> op)
-