NGramPhraseQuery
This is a PhraseQuery which is optimized for n-gram phrase query. For example, when you query "ABCD" on a 2-gram field, you may want to use NGramPhraseQuery rather than PhraseQuery, because NGramPhraseQuery will Query.rewrite the query to "AB/0 CD/2", while PhraseQuery will query "AB/0 BC/1 CD/2" (where term/position).
Properties
Functions
Link copied to clipboard
Expert: Constructs an appropriate Weight implementation for this query.
Link copied to clipboard
Override and implement query instance equivalence properly in a subclass. This is required so that QueryCache works properly.
Link copied to clipboard
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
Link copied to clipboard
Recurse through the query tree, visiting any child queries.