Class NearestFuzzyQuery


  • public class NearestFuzzyQuery
    extends Query
    Simplification of FuzzyLikeThisQuery, to be used in the context of KNN classification.
    • Constructor Detail

      • NearestFuzzyQuery

        public NearestFuzzyQuery​(Analyzer analyzer)
        Default constructor
        Parameters:
        analyzer - the analyzer used to proecss the query text
    • Method Detail

      • addTerms

        public void addTerms​(String queryString,
                             String fieldName)
        Adds user input for "fuzzification"
        Parameters:
        queryString - The string which will be parsed by the analyzer and for which fuzzy variants will be parsed
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class Query
      • equals

        public boolean equals​(Object other)
        Specified by:
        equals in class Query