|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.search.Query
org.apache.lucene.search.MultiTermQuery
public abstract class MultiTermQuery
A Query that matches documents containing a subset of terms provided
by a FilteredTermEnum enumeration.
MultiTermQuery is not designed to be used by itself.
The reason being that it is not intialized with a FilteredTermEnum
enumeration. A FilteredTermEnum enumeration needs to be provided.
For example, WildcardQuery and FuzzyQuery extend
MultiTermQuery to provide WildcardTermEnum and
FuzzyTermEnum, respectively.
| Constructor Summary | |
|---|---|
MultiTermQuery(Term term)
Constructs a query for terms matching term. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
protected abstract FilteredTermEnum |
getEnum(IndexReader reader)
Construct the enumeration to be used, expanding the pattern term. |
Term |
getTerm()
Returns the pattern term. |
int |
hashCode()
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries. |
java.lang.String |
toString(java.lang.String field)
Prints a user-readable version of this query. |
| 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 MultiTermQuery(Term term)
term.
| Method Detail |
|---|
public Term getTerm()
protected abstract FilteredTermEnum getEnum(IndexReader reader)
throws java.io.IOException
java.io.IOException
public Query rewrite(IndexReader reader)
throws java.io.IOException
Query
rewrite in class Queryjava.io.IOExceptionpublic java.lang.String toString(java.lang.String field)
toString in class Querypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||