Package com.redis.lettucemod.search
Class TextField<K>
- java.lang.Object
-
- com.redis.lettucemod.search.Field<K>
-
- com.redis.lettucemod.search.TextField<K>
-
- All Implemented Interfaces:
RediSearchArgument
public class TextField<K> extends Field<K>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextField.Builder<K>static classTextField.PhoneticMatcher-
Nested classes/interfaces inherited from class com.redis.lettucemod.search.Field
Field.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildField(SearchCommandArgs<K,java.lang.Object> args)booleanequals(java.lang.Object obj)java.util.Optional<TextField.PhoneticMatcher>getMatcher()java.util.OptionalDoublegetWeight()inthashCode()booleanisNoStem()booleanisWithSuffixTrie()static <K> TextField.Builder<K>name(K name)voidsetMatcher(TextField.PhoneticMatcher matcher)voidsetNoStem(boolean noStem)voidsetWeight(java.lang.Double weight)voidsetWithSuffixTrie(boolean withSuffixTrie)java.lang.StringtoString()-
Methods inherited from class com.redis.lettucemod.search.Field
build, geo, getAs, getName, getType, isNoIndex, isSortable, isUnNormalizedForm, numeric, setAs, setNoIndex, setSortable, setUnNormalizedForm, tag, text
-
-
-
-
Method Detail
-
getWeight
public java.util.OptionalDouble getWeight()
-
setWeight
public void setWeight(java.lang.Double weight)
-
isNoStem
public boolean isNoStem()
-
setNoStem
public void setNoStem(boolean noStem)
-
getMatcher
public java.util.Optional<TextField.PhoneticMatcher> getMatcher()
-
setMatcher
public void setMatcher(TextField.PhoneticMatcher matcher)
-
isWithSuffixTrie
public boolean isWithSuffixTrie()
-
setWithSuffixTrie
public void setWithSuffixTrie(boolean withSuffixTrie)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
buildField
protected void buildField(SearchCommandArgs<K,java.lang.Object> args)
- Specified by:
buildFieldin classField<K>
-
name
public static <K> TextField.Builder<K> name(K name)
-
-