Class SuggestFuzziness

java.lang.Object
co.elastic.clients.elasticsearch.core.search.SuggestFuzziness
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class SuggestFuzziness extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • fuzziness

      @Nullable public final String fuzziness()
      The fuzziness factor.

      API name: fuzziness

    • minLength

      @Nullable public final Integer minLength()
      Minimum length of the input before fuzzy suggestions are returned.

      API name: min_length

    • prefixLength

      @Nullable public final Integer prefixLength()
      Minimum length of the input, which is not checked for fuzzy alternatives.

      API name: prefix_length

    • transpositions

      @Nullable public final Boolean transpositions()
      If set to true, transpositions are counted as one change instead of two.

      API name: transpositions

    • unicodeAware

      @Nullable public final Boolean unicodeAware()
      If true, 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupSuggestFuzzinessDeserializer

      protected static void setupSuggestFuzzinessDeserializer(ObjectDeserializer<SuggestFuzziness.Builder> op)