Class PrefixCompletionQuery

Direct Known Subclasses:
FuzzyCompletionQuery

public class PrefixCompletionQuery extends CompletionQuery
A CompletionQuery which takes an Analyzer to analyze the prefix of the query term.

Example usage of querying an analyzed prefix 'sugg' against a field 'suggest_field' is as follows:

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