lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <>
Subject Re: Réf. : Re: do a simple search
Date Wed, 05 Jan 2005 10:14:24 GMT writes:
> I must change the request to made search like this
>         type=value AND (shortDesc=value OR longDesc=value)
> but I don't know how to do this ?
create a boolean query for (shortDesc=value OR longDesc=value)
(as you do so far) and create another boolean query adding that boolean
query and the query for type:product.
For the latter use add(<query>, true, false) to make both subqueries


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message