Class SingleTermQuery


  • public class SingleTermQuery
    extends AbstractTermQuery
    A query matching on single term value
    • Constructor Detail

      • SingleTermQuery

        public SingleTermQuery​(java.lang.String field,
                               java.lang.String value,
                               boolean fuzzy,
                               java.lang.Integer fuzziness)
    • Method Detail

      • getFuzzy

        public boolean getFuzzy()
        Returns:
        a flag to perform fuzzy searches based on the Damerau-Levenshtein Distance or Edit Distance algorithm. Fuzzy searches discover terms that are similar to a specified term without necessarily being an exact match.
      • getFuzziness

        public java.lang.Integer getFuzziness()
        Returns:
        an optional distance parameter specifies the maximum number of edits allowed, between 0 and 2, defaulting to 2