Package com.redis.vl.schema
Class TextField
java.lang.Object
com.redis.vl.schema.BaseField
com.redis.vl.schema.TextField
TextField represents a full-text searchable field in Redis. Supports features like stemming,
phonetic matching, and custom weights.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Fluent builder for TextField -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextField.TextFieldBuilder
builder()
Create a TextField builder (Lombok-style)Get the field type.static TextField.TextFieldBuilder
Create a TextField with fluent APIConvert to Jedis SchemaField for index creation.
-
Constructor Details
-
TextField
Create a TextField with just a name- Parameters:
name
- Field name
-
-
Method Details
-
of
Create a TextField with fluent API- Parameters:
name
- Field name- Returns:
- TextField builder
-
builder
Create a TextField builder (Lombok-style)- Returns:
- TextField builder
-
getFieldType
Description copied from class:BaseField
Get the field type.- Specified by:
getFieldType
in classBaseField
- Returns:
- The field type enumeration
-
toJedisSchemaField
Description copied from class:BaseField
Convert to Jedis SchemaField for index creation.- Specified by:
toJedisSchemaField
in classBaseField
- Returns:
- The Jedis schema field representation
-