lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: docBoost with "fq" search
Date Wed, 07 Mar 2012 13:51:53 GMT


--- On Wed, 3/7/12, Gian Marco Tagliani <gm.tagliani@gmail.com> wrote:

> From: Gian Marco Tagliani <gm.tagliani@gmail.com>
> Subject: docBoost with "fq" search
> To: solr-user@lucene.apache.org
> Date: Wednesday, March 7, 2012, 3:11 PM
> Hi All,
> I'm seeing strange behavior with my Solr (version 3.4).
> 
> For searching I'm using the "q" and the "fq" params.
> At index-time I'm adding a docBoost to each document.
> 
> When I perform a search with both "q" and "fq" params
> everything works.
> For the search with "q=*:*" and something in the "fq", it
> seems to me that the docBoost in not taken into
> consideration.
> 
> Is that possible?

Yes possible.

FilterQuery (fq) does not contribute to score. It is not used in score calculation. 

MatchAllDocsQuery (*:*) is a fast way to return all docs. Adding 
&fl=score&debugQuery=on will show that all docs will get constant score of 1.0.

Mime
View raw message