lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bastian Grimm [Eastbeam GmbH]" ...@eastbeam.com>
Subject Re: problem with get/setBoost of document fields
Date Thu, 23 Sep 2004 12:17:22 GMT
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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message