The boost is not thrown away, but rather combined with the length
normalization factor during indexing. So while your actual boost value
is not stored directly in the index, it is taken into consideration for
scoring appropriately.
Erik
On Sep 23, 2004, at 8:17 AM, Bastian Grimm [Eastbeam GmbH] wrote:
hmm ok,
but how will i be able to set different boosts to fields, if this
value is not stored?! i dont really understand why i can set a boost
factor and it is not stored and used.
what i want to do, is to weight my searchable index fields (type:
Field.UnStored) with a different factors for those fields and if am
not totally wrong this is done with set boost when i create the doc
and write it to the index... or is there another way to do this?
thanks, bastian
----
Daniel Naber wrote:
See the documentation for getBoost:
"Note: this value is not stored directly with the document in the
index. Documents returned from IndexReader.document(int) and
Hits.doc(int) may thus not have the same value present as when this
field was indexed."
Regards
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]