Package glide.api.models.commands.FT
Class FTCreateOptions
- java.lang.Object
-
- glide.api.models.commands.FT.FTCreateOptions
-
public class FTCreateOptions extends java.lang.ObjectAdditional parameters forFT.create(BaseClient, String, FieldInfo[], FTCreateOptions)command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFTCreateOptions.DataTypeType of the index dataset.static classFTCreateOptions.DistanceMetricDistance metrics to measure the degree of similarity between two vectors.
The above metrics calculate distance between two vectors, where the smaller the value is, the closer the two vectors are in the vector space.static interfaceFTCreateOptions.FieldA vector search field.static classFTCreateOptions.FieldInfoField definition to be added into index schema.static classFTCreateOptions.FTCreateOptionsBuilderstatic classFTCreateOptions.NumericFieldField contains a number.static classFTCreateOptions.TagFieldTag fields are similar to full-text fields, but they interpret the text as a simple list of tags delimited by a separator character.
ForFTCreateOptions.DataType.HASHfields, separator default is a comma (,).static classFTCreateOptions.TextFieldField contains any blob of data.static classFTCreateOptions.VectorFieldFlatVector field that supports vector search byFLAT(brute force) algorithm.
The algorithm is a brute force linear processing of each vector in the index, yielding exact answers within the bounds of the precision of the distance computations.static classFTCreateOptions.VectorFieldFlatBuilderstatic classFTCreateOptions.VectorFieldHnswVector field that supports vector search byHNSM(Hierarchical Navigable Small World) algorithm.
The algorithm provides an approximation of the correct answer in exchange for substantially lower execution times.static classFTCreateOptions.VectorFieldHnswBuilder
-
Constructor Summary
Constructors Constructor Description FTCreateOptions(FTCreateOptions.DataType dataType, GlideString[] prefixes)Backward-compatible convenience constructor for callers that only needdataTypeandprefixes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FTCreateOptions.FTCreateOptionsBuilderbuilder()GlideString[]toArgs()
-
-
-
Constructor Detail
-
FTCreateOptions
public FTCreateOptions(FTCreateOptions.DataType dataType, GlideString[] prefixes)
Backward-compatible convenience constructor for callers that only needdataTypeandprefixes. All other options use their defaults.- Parameters:
dataType- The index data type. IfnullaFTCreateOptions.DataType.HASHindex is created.prefixes- A list of prefixes of index definitions.
-
-
Method Detail
-
builder
public static FTCreateOptions.FTCreateOptionsBuilder builder()
-
toArgs
public GlideString[] toArgs()
-
-