lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto.de>
Subject Re: Réf. : Re: do a simple search
Date Wed, 05 Jan 2005 10:14:24 GMT
Stephane.Giner@apis-ca.fr 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
required.

HTH
	Morus

---------------------------------------------------------------------
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