public class MultiPhrasePrefixQuery extends org.apache .lucene .search .Query
| Constructor and Description |
|---|
MultiPhrasePrefixQuery()
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org
Add a single term at the next position in the phrase.
|
void |
add(org
Add multiple terms at the next position in the phrase.
|
void |
add(org
Allows to specify the relative position of terms within the phrase.
|
boolean |
equals(Object
Returns true if
o is equal to this.
|
String |
getField()
|
int[] |
getPositions()
Returns the relative positions of terms in this phrase.
|
int |
getSlop()
Sets the phrase slop for this query.
|
List |
getTermArrays()
Returns a List of the terms in the multiphrase.
|
int |
hashCode()
Returns a hash code value for this object.
|
org |
rewrite(org
|
void |
setMaxExpansions(int maxExpansions)
|
void |
setSlop(int s)
Sets the phrase slop for this query.
|
String |
toString(String
|
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 List<org .apache .lucene .index .Term []> getTermArrays()
public int[] getPositions()
public org.apache .lucene .search .Query rewrite(org .apache .lucene .index .IndexReader reader) throws IOException
rewrite in class
org.apache.lucene.search.Query
IOException
public boolean equals(Objecto)
o is equal to this.
public int hashCode()
public StringgetField()