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.Builder
The fuzziness factor.final SuggestFuzziness.Builder
Minimum length of the input before fuzzy suggestions are returned.final SuggestFuzziness.Builder
prefixLength
(Integer value) Minimum length of the input, which is not checked for fuzzy alternatives.protected SuggestFuzziness.Builder
self()
final SuggestFuzziness.Builder
transpositions
(Boolean value) If set totrue
, transpositions are counted as one change instead of two.final SuggestFuzziness.Builder
unicodeAware
(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
withJson
Methods 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:
self
in classWithJsonObjectBuilderBase<SuggestFuzziness.Builder>
-
build
Builds aSuggestFuzziness
.- Specified by:
build
in interfaceObjectBuilder<SuggestFuzziness>
- Throws:
NullPointerException
- if some of the required fields are null.
-