|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectQuery
SpanQuery
SpanTermQuery
SpanWildcardQuery
BigramSpanWildcardQuery
public class BigramSpanWildcardQuery
Matches spans containing a wildcard term. Performs extra filtering to make sure bi-grams are not matched.
| Field Summary | |
|---|---|
private Set |
stopSet
|
| Constructor Summary | |
|---|---|
BigramSpanWildcardQuery(Term term,
int termLimit)
Construct a SpanWildcardTermQuery matching expanded terms, but limiting the total number of terms matched. |
|
| Method Summary | |
|---|---|
void |
setStopWords(Set set)
|
protected boolean |
shouldSkipTerm(Term term)
Enables derived classes to skip certain terms in the index (e.g. stop words, bi-grams, etc.) |
| Methods inherited from class SpanWildcardQuery |
|---|
getSpans, getTermLimit, rewrite, toString |
| 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 Set stopSet
| Constructor Detail |
|---|
public BigramSpanWildcardQuery(Term term,
int termLimit)
| Method Detail |
|---|
public void setStopWords(Set set)
protected boolean shouldSkipTerm(Term term)
SpanWildcardQuery
shouldSkipTerm in class SpanWildcardQuery
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||