Package org.opengrok.suggest.query
Class SuggesterPhraseQuery
java.lang.Object
org.apache.lucene.search.Query
org.opengrok.suggest.query.SuggesterPhraseQuery
public class SuggesterPhraseQuery
extends org.apache.lucene.search.Query
Query for possible suggestions of
PhraseQuery
. It is divided into
CustomPhraseQuery
which represents the bare PhraseQuery
and
SuggesterQuery
which represent the query for suggestions.-
Constructor Summary
ConstructorsConstructorDescriptionSuggesterPhraseQuery
(String field, String identifier, List<String> tokens, int slop) -
Method Summary
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, sameClassAs, toString
-
Constructor Details
-
SuggesterPhraseQuery
- Parameters:
field
- term fieldidentifier
- unique String which identifies the token for which the suggestions should be madetokens
- all the tokens of the phrase queryslop
- word Levenshtein's distance
-
-
Method Details
-
getSuggesterQuery
-
getPhraseQuery
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.IndexSearcher indexSearcher) - Overrides:
rewrite
in classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Specified by:
visit
in classorg.apache.lucene.search.Query
-