Class TagField

java.lang.Object
com.redis.vl.schema.BaseField
com.redis.vl.schema.TagField

public class TagField extends BaseField
TagField represents an exact-match field in Redis. Used for categories, statuses, or other fields that require exact matching rather than full-text search.
  • Constructor Details

    • TagField

      public TagField(String name)
      Create a TagField with just a name
      Parameters:
      name - Field name
  • Method Details

    • of

      public static TagField.TagFieldBuilder of(String name)
      Create a TagField with fluent API
      Parameters:
      name - Field name
      Returns:
      TagField builder
    • builder

      public static TagField.TagFieldBuilder builder()
      Create a TagField builder (Lombok-style)
      Returns:
      TagField builder
    • getFieldType

      public FieldType getFieldType()
      Description copied from class: BaseField
      Get the field type.
      Specified by:
      getFieldType in class BaseField
      Returns:
      The field type enumeration
    • toJedisSchemaField

      public redis.clients.jedis.search.schemafields.SchemaField toJedisSchemaField()
      Description copied from class: BaseField
      Convert to Jedis SchemaField for index creation.
      Specified by:
      toJedisSchemaField in class BaseField
      Returns:
      The Jedis schema field representation