lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Goodell <good...@gmail.com>
Subject Re: Filtering w/ Multiple Terms
Date Thu, 20 Jan 2005 23:03:36 GMT
Maybe you should try making a BooleanQuery out of the TermQuerys and
then passing that to QueryFilter.  I've never tried it, but it should
work, right?

- andy g


On Thu, 20 Jan 2005 16:02:26 -0600, Jerry Jalenak
<Jerry.Jalenak@labone.com> 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?
> 
> Thanks!
> 
> Jerry Jalenak
> Senior Programmer / Analyst, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> jerry.jalenak@labone.com
> 
> This transmission (and any information attached to it) may be confidential and
> is intended solely for the use of the individual or entity to which it is
> addressed. If you are not the intended recipient or the person responsible for
> delivering the transmission to the intended recipient, be advised that you
> have received this transmission in error and that any use, dissemination,
> forwarding, printing, or copying of this information is strictly prohibited.
> If you have received this transmission in error, please immediately notify
> LabOne at the following email address: securityincidentreporting@labone.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message