lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <Wolf-Dietrich.Mate...@empolis.com>
Subject RE: Query and Boost Factor
Date Tue, 23 Jul 2002 16:07:49 GMT
Hello,
> From: Olivier Amira [mailto:olivier.amira@webmotion.com]
>   I'm (now) using a BooleanQuery to construct my query, and to verify 
> that my construction is correct, I use the toString() method to 
> retrieves the 'human readable' query.
>   Everything seems to be okay, but when I set a Boost Factor for a 
> sub-query (or the main query itself), this factor doesn't 
> appeard in the String as I was waiting for (with an '^' character). It
seem 
> normal that  this construction doesn't use a '^' character to set a Boost 
> Factor (due to the syntax limitation of this operator), but How could I
check the 
> Boost value other way than using the getBoost() method?
I notified the same behaviour.
BooleanQuery ignores its own boost factor during calculation. You can set
it, but
this will not change anything. If you want to change the boost of a boolean
query,
you have to set it for every clause (term). Sorry.
Maybe this could be changed in the further.
Regard,
	Wolf-Dietrich Materna

-- 
Wolf-Dietrich Materna
Development
 
empolis ekm
Bertelsmann MOHN Media Group
Kekul├ęstr. 7 
12489 Berlin, Germany
 
phone :  +49-30-6780-6510
fax :    +49-30-6780-6549
 
< mailto:Wolf-Dietrich.Materna@empolis.com>
www.empolis.com <http://www.empolis.com>  < http://www.empolis.com>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message