On 2/20/07, Brian Whitman <[EMAIL PROTECTED]> wrote:
On Feb 20, 2007, at 2:59 PM, Chris Hostetter wrote:
> In Lucene, Document boosts aren't stored in the docs for later
> recovered - the getBoost method is meaningless from a Document
> returned by
> a search (or retrieved from an IndexReader)
>
> Boosts are folded into the fieldNorm - doc boosts are folded into the
> fieldNorm of every field the doc has (that doesn't have OMIT_NORMS
> used)
Chris-- then how does Luke show the document boost? Does it compute
it somehow?
If you calculate the length of a document field, run it through the
Similarity used for indexing (lenghtNorm), and multiply its reciprocal
with the existing fieldNorm, you get the doc boost.
If I set a doc boost in Solr, should there be a field boost = to the
doc boost for each field where omitNorms=false during the explain
chunk? Because I am, and there's not. :) It doesn't show in Luke either.
If omitNorms=false on a field, the document boost and field boost are
moot. Unfortunate, but true.
-Mike