lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <>
Subject RE: Query and Boost Factor
Date Tue, 23 Jul 2002 16:07:49 GMT
> From: Olivier Amira []
>   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
> 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
you have to set it for every clause (term). Sorry.
Maybe this could be changed in the further.
	Wolf-Dietrich Materna

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

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

View raw message