lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Document Boost not evaluated when using standard Query Type?
Date Wed, 14 Sep 2011 02:56:17 GMT

: I want to show all documents with of a certain type. The documents 
: should be ordered by the index time document boost.


: But in fact every document gets the same score:
: 0.99997306 = (MATCH) fieldWeight(doctype:music in 1), product of:
:   1.0 = tf(termFreq(doctype:music)=1)
:   0.99997306 = idf(docFreq=37138, maxDocs=37138)
:   1.0 = fieldNorm(field=doctype, doc=1)

Index boosts are folded into the fieldNorm.  by the looks of it, you are 
using omitNorms="true" on the field "doctype"

: Is there a better way to get a list of all documents (matching a simple 
: "where clause) sorted by documents boost?

fieldNorms are very corse.  In my opinion, if you have a 
"weighting" you want to use to affect score sort, it's better to index 
that weight as a numeric field, and explicitly factor it into the score 
using a function query...

	q={!boost b=yourWeightField v=$qq}&qq=doctype:music

More info...


View raw message