Java org.apache.lucene.search PhraseQuery fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search PhraseQuery fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search PhraseQuery.

The text is from its open source code.

Constructor

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 .

Method

int[]getPositions()
Returns the relative positions of terms in this phrase.
intgetSlop()
Return the slop for this PhraseQuery .
Term[]getTerms()
Returns the list of terms in this phrase.
Queryrewrite(IndexReader reader)