What is your chosen version? At first glance I'd say your two
examples should be the same but I know there is lots going on behind
the scenes that I don't know about. Is one giving you correct results
and the other not?
As for BooleanFilter - no idea. FWIW I use QueryWrapperFilter,
CachingWrapp
Is there a behavioral difference between:
Query query = new FilteredQuery(query, filter1);
searcher.search(query, filter2, n);
...and:
ChainedFilter filter = new ChainedFilter(
new Filter[]{filter1, filter2}, ChainedFilter.AND);
searcher.search(query, filter, n);
I chose