You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Ned Rockson <ne...@discoveryengine.com> on 2007/11/01 22:32:51 UTC

When is the Clause.getQuery().getBoost == 0?

I'm trying to figure out when, in LuceneQueryOptimizer, that the 
filtering branch is followed.  IT appears in order to get down that 
branch, the clause must be required and its boost must be == 0.0.  I ran 
the NutchBean pipeline though and every Clause is 1.0 no matter what I 
put in.  What is the reasoning behind this?  It seems like it should be 
!= 0.0, but maybe I don't understand the reasoning behind it.

Thanks
Ned

Re: When is the Clause.getQuery().getBoost == 0?

Posted by Andrzej Bialecki <ab...@getopt.org>.
Ned Rockson wrote:
> I'm trying to figure out when, in LuceneQueryOptimizer, that the 
> filtering branch is followed.  IT appears in order to get down that 
> branch, the clause must be required and its boost must be == 0.0.  I ran 
> the NutchBean pipeline though and every Clause is 1.0 no matter what I 
> put in.  What is the reasoning behind this?  It seems like it should be 
> != 0.0, but maybe I don't understand the reasoning behind it.

Check query-more/.../DateQueryFilter, or query-site. The reason for 
setting this value to 0.0 is to trigger the filterization in 
LuceneQueryOptimizer. This is done for clauses that don't affect the 
scoring, but only affect the selection of matching results.

-- 
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com