thanks, Hoss!
I read the doc for the api indexreader.setNorm() after I posted the question earlier. To use that setNorm() to modify the field boost, it seems to me that one has to know how the boost is folded to the norm (in the default impl, it's boost* lengthNorm) and has to know the old norm value which is impossible to get without getting all the norms for all the docs. Am I missing other apis to use?

Jay

Chris Hostetter wrote:
: It's clear that there is no easy way to do "in-place" doc update in the lucene
: index, but I think it should be theoretically possible to update the field and
: doc boostings in place, that is, without deleting and re-adding the doc and
: it's fields. Does anyone know how?

boosts are folded into the norm, which is mutable using IndexReader.setNorm



-Hoss


---------------------------------------------------------------------
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]

Reply via email to