Interface FuzzyContext

All Superinterfaces:
QueryCustomization<FuzzyContext>

public interface FuzzyContext extends QueryCustomization<FuzzyContext>
  • Method Details

    • onField

      TermMatchingContext onField(String field)
      field / property the term query is executed on
    • withThreshold

      FuzzyContext withThreshold(float threshold)
      Threshold above which two terms are considered similar enough. Value between 0 and 1 (1 excluded) Defaults to .5
    • withPrefixLength

      FuzzyContext withPrefixLength(int prefixLength)
      Size of the prefix ignored by the fuzzyness. A non zero value is recommended if the index contains a huge amount of distinct terms Defaults to 0