lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: multiple field search
Date Mon, 02 Aug 2004 10:03:06 GMT
On Monday 02 August 2004 08:04, Toby Tremayne wrote:

>             That said, I still haven't worked out how to search using
> multiple fields yet so any help would be greatly appreciated.

You need to build a BooleanQuery which contains e.g. TermQuerys, one TermQuery 
per field. To increase/decrease the weight/ranking for certain fields, use 
TermQuery's setBoost() method.

Regards
 Daniel


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