anl.aida.ae.lucene
Class WordFilter

java.lang.Object
  extended by anl.aida.ae.lucene.WordFilter
All Implemented Interfaces:
Filter<org.apache.lucene.index.Term>

public class WordFilter
extends java.lang.Object
implements Filter<org.apache.lucene.index.Term>

Filters out terms that have any numeric component as well as any terms whose length is less than a minimum length.


Field Summary
private  int minWordSize
           
 
Constructor Summary
WordFilter(int minWordSize)
           
 
Method Summary
 boolean evaluate(org.apache.lucene.index.Term item)
          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

minWordSize

private int minWordSize
Constructor Detail

WordFilter

public WordFilter(int minWordSize)
Method Detail

evaluate

public boolean evaluate(org.apache.lucene.index.Term item)
Description copied from interface: Filter
Evaluates an item against some implementor specific criteria and returns true if the item passes the filter.

Specified by:
evaluate in interface Filter<org.apache.lucene.index.Term>
Parameters:
item - the item to evaluate
Returns:
true if the item passes the filter, otherwise false.