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

> From: Gian Marco Tagliani <gm.tagli...@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.

Reply via email to