|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.solr.analysis.BufferedTokenStream
org.apache.solr.analysis.CommonGramsQueryFilter
public class CommonGramsQueryFilter
Wrap a CommonGramsFilter optimizing phrase queries by only returning single words when they are not a member of a bigram.
Example:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
|---|
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.analysis.TokenFilter |
|---|
input |
| Constructor Summary | |
|---|---|
CommonGramsQueryFilter(CommonGramsFilter input)
Constructor |
|
| Method Summary | |
|---|---|
org.apache.lucene.analysis.Token |
process(org.apache.lucene.analysis.Token token)
Output bigrams whenever possible to optimize queries. |
void |
reset()
|
| Methods inherited from class org.apache.solr.analysis.BufferedTokenStream |
|---|
incrementToken, output, peek, pushBack, read, write |
| Methods inherited from class org.apache.lucene.analysis.TokenFilter |
|---|
close, end |
| Methods inherited from class org.apache.lucene.util.AttributeSource |
|---|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommonGramsQueryFilter(CommonGramsFilter input)
input - must be a CommonGramsFilter!| Method Detail |
|---|
public void reset()
throws java.io.IOException
reset in class BufferedTokenStreamjava.io.IOException
public org.apache.lucene.analysis.Token process(org.apache.lucene.analysis.Token token)
throws java.io.IOException
process in class BufferedTokenStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||