lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
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.


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

View raw message