Class Overview
Lucene filter that finds documents that match any of the supplied org.apache.lucene.index.Term. (This filter
basically applies an OR operation on each of the terms.)
Summary
Public Constructors |
|
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.
|
Public Constructors
public
MultiTermFilter
()
Create a new MultiTermFilter with a default behaviour of not negating.
public
MultiTermFilter
(boolean negating)
Create a new MultiTermFilter with control over whether it is negating or not.
Parameters
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.
|
Public Methods
public
void
addTerm
(Term term)
Parameters
term
| one of the terms to be part of the filter. |