: Can you get the boost of an indexed document? Am I missing something
: basic? Is the stored document boost lost once it is indexed?
Bingo. 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)
Background on my bitterness about this...
http://www.nabble.com/Re%3A--jira--Commented%3A-%28LUCENE-778%29-Allow-overriding-a-Document-p8418224.html
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)
Ah - yes. That would explain the oddity I saw with the order of hits
not matching the document boost, since I was querying against a field
that had omit norms (because it's really short).
-- Ken
--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"