lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: problem with get/setBoost of document fields
Date Thu, 23 Sep 2004 12:56:35 GMT
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.


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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message