lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll" <GSIng...@syr.edu>
Subject Re: Weighted queries
Date Fri, 06 Aug 2004 15:24:18 GMT
Btw, MultiFieldQueryParser extends QueryParser, which has the
setOperator method that allows you to set the default operator.

>>> Eric.Jain@isb-sib.ch 8/6/2004 10:54:55 AM >>>
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 


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