|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.ae.lucene.DocumentFrequencyFilter
public class DocumentFrequencyFilter
Filters a Term based on how many documents in an index it appears in.
Field Summary | |
---|---|
private int |
freq
|
private org.apache.lucene.index.IndexReader |
reader
|
Constructor Summary | |
---|---|
DocumentFrequencyFilter(org.apache.lucene.index.IndexReader reader,
int frequency)
Creates a DocFrequencyFilter that will use the specified index. |
Method Summary | |
---|---|
boolean |
evaluate(org.apache.lucene.index.Term term)
Evaluates an item against some implementor specific criteria and returns true if the item passes the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.lucene.index.IndexReader reader
private int freq
Constructor Detail |
---|
public DocumentFrequencyFilter(org.apache.lucene.index.IndexReader reader, int frequency) throws java.io.IOException
reader
- the reader to read the index withfrequency
- the minimum number of times the terms must appear in the indexed corpus.
java.io.IOException
- if there is an exception opening the index.Method Detail |
---|
public boolean evaluate(org.apache.lucene.index.Term term)
evaluate
in interface Filter<org.apache.lucene.index.Term>
term
- the item to evaluate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |