|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Filter fr.gouv.culture.sdx.search.lucene.filter.AbstractFilter fr.gouv.culture.sdx.search.lucene.filter.Criteria
public class Criteria
The Criteria for a Filter.
Field Summary | |
---|---|
org.apache.lucene.search.Filter |
luceneFilter
The Lucene filter, if necessary |
Fields inherited from class fr.gouv.culture.sdx.search.lucene.filter.AbstractFilter |
---|
logger |
Constructor Summary | |
---|---|
Criteria()
|
Method Summary | |
---|---|
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. |
Methods inherited from class fr.gouv.culture.sdx.search.lucene.filter.AbstractFilter |
---|
enableLogging |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.apache.lucene.search.Filter luceneFilter
Constructor Detail |
---|
public Criteria()
Method Detail |
---|
public void setUp(Field field, java.lang.String pattern) throws SDXException
field
- The field.pattern
- The search pattern.
SDXException
public void setUp(org.apache.lucene.search.Filter luceneFilter) throws SDXException
luceneFilter
- The SDX/Lucene filter.
SDXException
public java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
bits
in interface FilterCriteria
bits
in class AbstractFilter
r
- 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.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |