Class SuggestFuzziness
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SuggestFuzziness
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SuggestFuzziness>Json deserializer forSuggestFuzziness -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe fuzziness factor.final IntegerMinimum length of the input before fuzzy suggestions are returned.static SuggestFuzzinessfinal IntegerMinimum length of the input, which is not checked for fuzzy alternatives.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final BooleanIf set totrue, transpositions are counted as one change instead of two.final BooleanIftrue, 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSuggestFuzzinessDeserializer
protected static void setupSuggestFuzzinessDeserializer(ObjectDeserializer<SuggestFuzziness.Builder> op)
-