Programmer Question
I want to combine several filters in a Lucene search. It seems that there are two classes that can help with this: ChainedFilter
and BooleanFilter
.
ChainedFilter
is a contributed class, and has been around for longer. It supports AND, OR, NOT, and XOR.
BooleanFilter
is a newer, main-line class. It supports the unusual "Should", "MustNot", and "Must" operators.
How do I decide which one to use?
Find the answer here
No comments:
Post a Comment