Package com.redis.vl.schema
Class TagField.TagFieldBuilder
java.lang.Object
com.redis.vl.schema.TagField.TagFieldBuilder
- Enclosing class:
TagField
Fluent builder for TagField
-
Method Summary
Modifier and TypeMethodDescriptionSet the field aliasbuild()Build the TagFieldSet tag matching as case-sensitivecaseSensitive(boolean caseSensitive) Set whether tag matching is case-sensitiveindexed(boolean indexed) Set whether the field is indexedIndex empty string values (equivalent to indexEmpty(true)).indexEmpty(boolean indexEmpty) Set whether to index empty string values.Index missing values (equivalent to indexMissing(true)).indexMissing(boolean indexMissing) Set whether to index missing values (documents without this field).Set the field nameSet the separator for multi-value tagssortable()Set the field as sortablesortable(boolean sortable) Set whether the field is sortableSet the field alias (alternative method)withSeparator(String separator) Set the separator for multi-value tags (alternative method)
-
Method Details
-
name
Set the field name- Parameters:
name- Field name- Returns:
- This builder
-
alias
Set the field alias- Parameters:
alias- Field alias- Returns:
- This builder
-
withAlias
Set the field alias (alternative method)- Parameters:
alias- Field alias- Returns:
- This builder
-
indexed
Set whether the field is indexed- Parameters:
indexed- True if indexed- Returns:
- This builder
-
sortable
Set whether the field is sortable- Parameters:
sortable- True if sortable- Returns:
- This builder
-
sortable
Set the field as sortable- Returns:
- This builder
-
separator
Set the separator for multi-value tags- Parameters:
separator- Separator character (default: ",")- Returns:
- This builder
-
withSeparator
Set the separator for multi-value tags (alternative method)- Parameters:
separator- Separator character (default: ",")- Returns:
- This builder
-
caseSensitive
Set whether tag matching is case-sensitive- Parameters:
caseSensitive- True for case-sensitive matching- Returns:
- This builder
-
caseSensitive
Set tag matching as case-sensitive- Returns:
- This builder
-
indexMissing
Set whether to index missing values (documents without this field).- Parameters:
indexMissing- True to index missing values- Returns:
- This builder
-
indexMissing
Index missing values (equivalent to indexMissing(true)).- Returns:
- This builder
-
indexEmpty
Set whether to index empty string values.- Parameters:
indexEmpty- True to index empty values- Returns:
- This builder
-
indexEmpty
Index empty string values (equivalent to indexEmpty(true)).- Returns:
- This builder
-
build
Build the TagField- Returns:
- TagField instance
-