Class SuggestFuzziness.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SuggestFuzziness.Builder>
co.elastic.clients.elasticsearch.core.search.SuggestFuzziness.Builder
- All Implemented Interfaces:
WithJson<SuggestFuzziness.Builder>,ObjectBuilder<SuggestFuzziness>
- Enclosing class:
- SuggestFuzziness
public static class SuggestFuzziness.Builder
extends WithJsonObjectBuilderBase<SuggestFuzziness.Builder>
implements ObjectBuilder<SuggestFuzziness>
Builder for
SuggestFuzziness.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSuggestFuzziness.final SuggestFuzziness.BuilderThe fuzziness factor.final SuggestFuzziness.BuilderMinimum length of the input before fuzzy suggestions are returned.final SuggestFuzziness.BuilderprefixLength(Integer value) Minimum length of the input, which is not checked for fuzzy alternatives.protected SuggestFuzziness.Builderself()final SuggestFuzziness.Buildertranspositions(Boolean value) If set totrue, transpositions are counted as one change instead of two.final SuggestFuzziness.BuilderunicodeAware(Boolean value) Iftrue, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fuzziness
The fuzziness factor.API name:
fuzziness -
minLength
Minimum length of the input before fuzzy suggestions are returned.API name:
min_length -
prefixLength
Minimum length of the input, which is not checked for fuzzy alternatives.API name:
prefix_length -
transpositions
If set totrue, transpositions are counted as one change instead of two.API name:
transpositions -
unicodeAware
Iftrue, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes. This is slightly slower than raw bytes.API name:
unicode_aware -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SuggestFuzziness.Builder>
-
build
Builds aSuggestFuzziness.- Specified by:
buildin interfaceObjectBuilder<SuggestFuzziness>- Throws:
NullPointerException- if some of the required fields are null.
-