On Jan 20, 2005, at 5:02 PM, Jerry Jalenak wrote:

In looking at the examples for filtering of hits, it looks like I can only
specify a single term; i.e.


        Filter f = new QueryFilter(new TermQuery(new Term("acct",
"acct1")));

I need to specify more than one term in my filter. Short of using something
like ChainFilter, how are others handling this?

You can make as complex of a Query as you want for QueryFilter. If you want to filter on multiple terms, construct a BooleanQuery with nested TermQuery's, either in an AND or OR fashion.


        Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to