|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectQuery
SpanQuery
SpanTermQuery
SpanWildcardQuery
public class SpanWildcardQuery
Matches spans containing a wildcard term.
| Field Summary | |
|---|---|
private int |
termLimit
Limit on the total number of terms matched |
private static int |
TERMS_TO_REPORT
Limit on the number of terms to report on an error |
| Constructor Summary | |
|---|---|
SpanWildcardQuery(Term term)
Construct a SpanWildcardTermQuery matching expanded terms |
|
SpanWildcardQuery(Term term,
int termLimit)
Construct a SpanWildcardTermQuery matching expanded terms, but limiting the total number of terms matched. |
|
| Method Summary | |
|---|---|
Spans |
getSpans(IndexReader reader,
Searcher searcher)
Should never be called on the wildcard query itself, only on the result of rewrite(IndexReader). |
int |
getTermLimit()
Retrieve the term limit this was constructed with |
Query |
rewrite(IndexReader reader)
This method is actually the workhorse of the class. |
protected boolean |
shouldSkipTerm(Term t)
Enables derived classes to skip certain terms in the index (e.g. stop words, bi-grams, etc.) |
String |
toString(String field)
|
| Methods inherited from class SpanTermQuery |
|---|
getField, getTerm, getTermLength, getTerms |
| Methods inherited from class SpanQuery |
|---|
createWeight, getSpanRecording, setSpanRecording |
| Methods inherited from class Query |
|---|
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int termLimit
private static final int TERMS_TO_REPORT
| Constructor Detail |
|---|
public SpanWildcardQuery(Term term)
public SpanWildcardQuery(Term term,
int termLimit)
| Method Detail |
|---|
public int getTermLimit()
public Query rewrite(IndexReader reader)
throws IOException
rewrite in class QueryIOExceptionprotected boolean shouldSkipTerm(Term t)
public Spans getSpans(IndexReader reader,
Searcher searcher)
throws IOException
rewrite(IndexReader).
getSpans in class SpanTermQueryIOExceptionpublic String toString(String field)
toString in class SpanTermQuery
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||