Class FuzzyCompletionQuery


  • public class FuzzyCompletionQuery
    extends PrefixCompletionQuery
    A CompletionQuery that match documents containing terms within an edit distance of the specified prefix.

    This query boost documents relative to how similar the indexed terms are to the provided prefix.

    Example usage of querying an analyzed prefix within an edit distance of 1 of 'subg' against a field 'suggest_field' is as follows:

      CompletionQuery query = new FuzzyCompletionQuery(analyzer, new Term("suggest_field", "subg"));
     
    WARNING: This API is experimental and might change in incompatible ways in the next release.