On Thu, Jan 20, 2011 at 3:06 PM,  <[email protected]> wrote:
> I tried commenting out the final OR term, and that excluded all records that 
> were out-of-language as expected.  It's just the boost that doesn't seem to 
> work.

I see a lot of unexpected zeros - queryNorm has factors if idf and the
boost in it - the fact that it's 0 suggests that you used a 0 boost.

Why don't you do a toString() on your query and see if it's what you expect.

-Yonik
http://www.lucidimagination.com



> Exploring the explain is challenging because of its size, but there are NO 
> boosts recorded of the size I am using (10.0).  Here's the basic structure of 
> the first result.
>
> 0.0 = (MATCH) sum of:
>  0.0 = (MATCH) sum of:
>    0.0 = (MATCH) weight(language:eng in 52867945), product of:
>      0.0 = queryWeight(language:eng), product of:
>        1.0 = idf(docFreq=23889670, maxDocs=59327671)
>        0.0 = queryNorm
>      1.0 = (MATCH) fieldWeight(language:eng in 52867945), product of:
>        1.0 = tf(termFreq(language:eng)=0)
>        1.0 = idf(docFreq=23889670, maxDocs=59327671)
>        1.0 = fieldNorm(field=language, doc=52867945)
>    0.0 = (MATCH) product of:
>      0.0 = (MATCH) sum of:
>        0.0 = (MATCH) CutoffQueryWrapper((+(othervalue_5:banker^5.997396E-4 
> othervalue_5:bucker^5.997396E-4 othervalue_5:bunder^5.997396E-4 
> othervalue_5:bunker othervalue_5:bunner^5.997396E-4 
> othervalue_5:burker^5.997396E-4) +value_5:hill)^0.5714286), product of:
>          1.0 = boost
>          0.0 = queryNorm
>        0.0 = (MATCH) CutoffQueryWrapper((+(value_5:banker^5.997396E-4 
> value_5:baunker^5.997396E-4 value_5:benker^5.997396E-4 
> value_5:beunker^5.997396E-4 value_5:binker^5.997396E-4 
> value_5:bonker^5.997396E-4 value_5:brunker^5.997396E-4 
> value_5:bucker^5.997396E-4 value_5:bueker^5.997396E-4 
> value_5:bunder^5.997396E-4 value_5:bunger^5.997396E-4 
> value_5:bunkek^5.997396E-4 value_5:bunken^5.997396E-4 value_5:bunker 
> value_5:bunkers^5.997396E-4 value_5:bunkeru^5.997396E-4 
> value_5:bunner^5.997396E-4 value_5:bunter^5.997396E-4 
> value_5:bunzer^5.997396E-4 value_5:burker^5.997396E-4 
> value_5:busker^5.997396E-4) +othervalue_5:hill)^0.5714286), product of:
>          1.0 = boost
>          0.0 = queryNorm
>
> ...
>
>      0.0069078947 = coord(21/3040)
>  0.0 = (MATCH) product of:
>    0.0 = (MATCH) sum of:
>      0.0 = (MATCH) CutoffQueryWrapper((+(othervalue_5:banker^5.997396E-4 
> othervalue_5:bucker^5.997396E-4 othervalue_5:bunder^5.997396E-4 
> othervalue_5:bunker othervalue_5:bunner^5.997396E-4 
> othervalue_5:burker^5.997396E-4) +value_5:hill)^0.5714286), product of:
>        1.0 = boost
>        0.0 = queryNorm
>      0.0 = (MATCH) CutoffQueryWrapper((+(value_5:banker^5.997396E-4 
> value_5:baunker^5.997396E-4 value_5:benker^5.997396E-4 
> value_5:beunker^5.997396E-4 value_5:binker^5.997396E-4 
> value_5:bonker^5.997396E-4 value_5:brunker^5.997396E-4 
> value_5:bucker^5.997396E-4 value_5:bueker^5.997396E-4 
> value_5:bunder^5.997396E-4 value_5:bunger^5.997396E-4 
> value_5:bunkek^5.997396E-4 value_5:bunken^5.997396E-4 value_5:bunker 
> value_5:bunkers^5.997396E-4 value_5:bunkeru^5.997396E-4 
> value_5:bunner^5.997396E-4 value_5:bunter^5.997396E-4 
> value_5:bunzer^5.997396E-4 value_5:burker^5.997396E-4 
> value_5:busker^5.997396E-4) +othervalue_5:hill)^0.5714286), product of:
>        1.0 = boost
>        0.0 = queryNorm
>
> ...
>
>    0.0069078947 = coord(21/3040)
>
> It looks like the PRODUCT_OF and SUM_OF, which represents the Boolean logic, 
> does not actually apply boost?
>
> Karl
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of ext Yonik 
> Seeley
> Sent: Thursday, January 20, 2011 2:36 PM
> To: [email protected]
> Subject: Re: Odd Boolean scoring behavior?
>
> On Thu, Jan 20, 2011 at 2:17 PM,  <[email protected]> wrote:
>> The problem is that the LANGUAGE_BOOST boost doesn't seem to be having any
>> effect.  I can change it all over the place, and nothing much changes.
>
> Then perhaps your language term doesn't actually match anything in the
> index?  (i.e. how is it analyzed?)
> Next step would be to get score explanations (just add debugQuery=true
> if you're using Solr, or see IndexSearcher.explain() if not).
>
> -Yonik
> http://www.lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to