: I am writing my own handler, and I would like to pre-filter the results 
: based on a field. Iÿÿm calling searcher.getDocList() with a custom 
: constructed query and filters list, but the filters always seem to AND 
: together. My question is this: how can I construct the List<Query> of 
: filters to make them OR together (documents are included in results if 
: they match *any* of my filters)?

if you want/need your filters to be cached independently, the easiest 
thing to do is to loop over each query and call getDocSet ... then union 
all of those sets together and pass the resulting DocSet to getDocList()

If you don't want/need your filters to be cached independenty, just 
combine all of those TermQueries into a big BooleanQuery.



-Hoss

Reply via email to