lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Jain <Eric.J...@isb-sib.ch>
Subject Weighted queries
Date Fri, 06 Aug 2004 14:54:55 GMT
Is it possible to expand a query such as

   foo bar

into

   (title:foo^4 OR abstract:foo^2 OR content:foo) AND
   (title:bar^4 OR abstract:bar^2 OR content:bar)

?

I can assign weights to individual fields when indexing, and could use 
the MultiFieldQueryParser - but it seems this parser can't be configured 
to use AND as default!

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