Class FuzzyTerm


  • public class FuzzyTerm
    extends IntervalFunction
    An interval function equivalent to FuzzyQuery. A fuzzy term expands to a disjunction of intervals of terms that are within the specified maxEdits from the provided term. A limit of maxExpansions prevents the internal implementation from blowing up on too many potential candidate terms.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int maxEdits  
      private java.lang.Integer maxExpansions  
      private java.lang.String term  
    • Constructor Summary

      Constructors 
      Constructor Description
      FuzzyTerm​(java.lang.String term, java.lang.Integer maxEdits, java.lang.Integer maxExpansions)  
    • Field Detail

      • term

        private final java.lang.String term
      • maxEdits

        private final int maxEdits
      • maxExpansions

        private final java.lang.Integer maxExpansions
    • Constructor Detail

      • FuzzyTerm

        public FuzzyTerm​(java.lang.String term,
                         java.lang.Integer maxEdits,
                         java.lang.Integer maxExpansions)