Class SuggestFuzziness
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SuggestFuzziness
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<SuggestFuzziness>
Json deserializer forSuggestFuzziness
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
The fuzziness factor.final Integer
Minimum length of the input before fuzzy suggestions are returned.static SuggestFuzziness
final Integer
Minimum length of the input, which is not checked for fuzzy alternatives.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
final Boolean
If set totrue
, transpositions are counted as one change instead of two.final Boolean
Iftrue
, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.
-
Field Details
-
_DESERIALIZER
Json deserializer forSuggestFuzziness
-
-
Method Details
-
of
public static SuggestFuzziness of(Function<SuggestFuzziness.Builder, ObjectBuilder<SuggestFuzziness>> fn) -
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSuggestFuzzinessDeserializer
protected static void setupSuggestFuzzinessDeserializer(ObjectDeserializer<SuggestFuzziness.Builder> op)
-