|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Filter com.atlassian.confluence.search.lucene.filter.MultiTermFilter
public class MultiTermFilter
Lucene filter that finds documents that match any of the supplied Term
. (This filter
basically applies an OR operation on each of the terms.)
Constructor Summary | |
---|---|
MultiTermFilter()
Create a new MultiTermFilter with a default behaviour of not negating. |
|
MultiTermFilter(boolean negating)
Create a new MultiTermFilter with control over whether it is negating or not. |
Method Summary | |
---|---|
void |
addTerm(org.apache.lucene.index.Term term)
|
java.util.BitSet |
bits(org.apache.lucene.index.IndexReader reader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiTermFilter()
MultiTermFilter(boolean)
public MultiTermFilter(boolean negating)
negating
- if true then the filter will have a starting state of allowing all documents with any matching
terms causing that document not to match. If false, then the filter behaves as you would normally
expect with no documents being allowed unless they match the filter.Method Detail |
---|
public void addTerm(org.apache.lucene.index.Term term)
term
- one of the terms to be part of the filter.
java.lang.IllegalArgumentException
- if the null term parameter is suppliedpublic java.util.BitSet bits(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
bits
in class org.apache.lucene.search.Filter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |