Example usage for Java org.apache.lucene.search PhraseQuery fields, constructors, methods, implement or subclass
The text is from its open source code.
PhraseQuery | |
PhraseQuery(String field, String... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field . | |
PhraseQuery(String field, BytesRef... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field . | |
PhraseQuery(int slop, Term[] terms, int[] positions) | |
PhraseQuery(int slop, String field, String... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field , and at a maximum edit distance of slop . | |
PhraseQuery(int slop, String field, BytesRef... terms) Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field , and at a maximum edit distance of slop . |
int[] | getPositions() Returns the relative positions of terms in this phrase. |
int | getSlop() Return the slop for this PhraseQuery . |
Term[] | getTerms() Returns the list of terms in this phrase. |
Query | rewrite(IndexReader reader) |