public class Criteria extends AbstractFilter
| Modifier and Type | Field and Description |
|---|---|
org.apache.lucene.search.Filter |
luceneFilter
The Lucene filter, if necessary
|
logger| Constructor and Description |
|---|
Criteria() |
| Modifier and Type | Method and Description |
|---|---|
java.util.BitSet |
bits(org.apache.lucene.index.IndexReader r)
Applies the criteria and turns over the documents which satisfy it
|
void |
setUp(Field field,
java.lang.String pattern)
Contructs a Criteria on the value of a field.
|
void |
setUp(org.apache.lucene.search.Filter luceneFilter)
Constructs an SDX filter (also a Lucene filter).
|
void |
toSAX(org.xml.sax.ContentHandler hdl)
Returns a SAX representation of this criteria.
|
enableLoggingpublic org.apache.lucene.search.Filter luceneFilter
public void setUp(Field field, java.lang.String pattern) throws SDXException
field - The field.pattern - The search pattern.SDXExceptionpublic void setUp(org.apache.lucene.search.Filter luceneFilter)
throws SDXException
luceneFilter - The SDX/Lucene filter.SDXExceptionpublic java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
bits in interface FilterCriteriabits in class AbstractFilterr - The reader of the index.public void toSAX(org.xml.sax.ContentHandler hdl)
throws org.xml.sax.SAXException
hdl - The ContentHandler to feed with events.org.xml.sax.SAXExceptionCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.