Package com.redis.vl.schema
Class TagField
java.lang.Object
com.redis.vl.schema.BaseField
com.redis.vl.schema.TagField
TagField represents an exact-match field in Redis. Used for categories, statuses, or other fields
that require exact matching rather than full-text search.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for TagField -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagField.TagFieldBuilderbuilder()Create a TagField builder (Lombok-style)Get the field type.static TagField.TagFieldBuilderCreate a TagField with fluent APIredis.clients.jedis.search.schemafields.SchemaFieldConvert to Jedis SchemaField for index creation.
-
Constructor Details
-
TagField
Create a TagField with just a name- Parameters:
name- Field name
-
-
Method Details
-
of
Create a TagField with fluent API- Parameters:
name- Field name- Returns:
- TagField builder
-
builder
Create a TagField builder (Lombok-style)- Returns:
- TagField builder
-
getFieldType
Description copied from class:BaseFieldGet the field type.- Specified by:
getFieldTypein classBaseField- Returns:
- The field type enumeration
-
toJedisSchemaField
public redis.clients.jedis.search.schemafields.SchemaField toJedisSchemaField()Description copied from class:BaseFieldConvert to Jedis SchemaField for index creation.- Specified by:
toJedisSchemaFieldin classBaseField- Returns:
- The Jedis schema field representation
-