|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Query org.elasticsearch.common.lucene.search.MultiPhrasePrefixQuery
public class MultiPhrasePrefixQuery
Constructor Summary | |
---|---|
MultiPhrasePrefixQuery()
|
Method Summary | |
---|---|
void |
add(org.apache.lucene.index.Term term)
Add a single term at the next position in the phrase. |
void |
add(org.apache.lucene.index.Term[] terms)
Add multiple terms at the next position in the phrase. |
void |
add(org.apache.lucene.index.Term[] terms,
int position)
Allows to specify the relative position of terms within the phrase. |
boolean |
equals(java.lang.Object o)
Returns true if o is equal to this. |
int[] |
getPositions()
Returns the relative positions of terms in this phrase. |
int |
getSlop()
Sets the phrase slop for this query. |
java.util.List<org.apache.lucene.index.Term[]> |
getTermArrays()
Returns a List of the terms in the multiphrase. |
int |
hashCode()
Returns a hash code value for this object. |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader)
|
void |
setMaxExpansions(int maxExpansions)
|
void |
setSlop(int s)
Sets the phrase slop for this query. |
java.lang.String |
toString(java.lang.String f)
|
Methods inherited from class org.apache.lucene.search.Query |
---|
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiPhrasePrefixQuery()
Method Detail |
---|
public void setSlop(int s)
PhraseQuery.setSlop(int)
public void setMaxExpansions(int maxExpansions)
public int getSlop()
PhraseQuery.getSlop()
public void add(org.apache.lucene.index.Term term)
PhraseQuery.add(Term)
public void add(org.apache.lucene.index.Term[] terms)
PhraseQuery.add(Term)
public void add(org.apache.lucene.index.Term[] terms, int position)
terms
- position
- PhraseQuery.add(Term, int)
public java.util.List<org.apache.lucene.index.Term[]> getTermArrays()
public int[] getPositions()
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
rewrite
in class org.apache.lucene.search.Query
java.io.IOException
public final java.lang.String toString(java.lang.String f)
toString
in class org.apache.lucene.search.Query
public boolean equals(java.lang.Object o)
o
is equal to this.
equals
in class org.apache.lucene.search.Query
public int hashCode()
hashCode
in class org.apache.lucene.search.Query
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |