Method Summary |
|
public void | add(Term term) Add a single term at the next position in the phrase. |
public void | add(Term[] terms) Add multiple terms at the next position in the phrase. |
public void | add(Term[] terms, int position) Allows to specify the relative position of terms within the phrase. |
protected Weight | createWeight(Searcher searcher) |
public boolean | equals(Object o) Returns true if o is equal to this. |
public void | extractTerms(Set terms) |
public int[] | getPositions() Returns the relative positions of terms in this phrase. |
public int | getSlop() Sets the phrase slop for this query. |
public List | getTermArrays() Returns a List of the terms in the multiphrase. |
public int | hashCode() Returns a hash code value for this object. |
public Query | rewrite(IndexReader reader) |
public void | setSlop(int s) Sets the phrase slop for this query. |
final public String | toString(String f) Prints a user-readable version of this query. |