[email protected]
[Top] [All Lists]

Re: update field boost

Subject: Re: update field boost
From: Jay
Date: Tue, 12 Feb 2008 08:39:00 -0800
It'd be helpful if there is an api for getting the norm of a given field in a given doc.
Thanks for the pointers.


Chris Hostetter wrote:
: 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?

you might wnat to take a look at FieldNormModifier ... it doesn't deal with boosts, but it shows how you can figure out the length part of the

what you are attempting is definitly non trivial, computing a norm is a one way function of several inputs -- you can't recompute a new norm by changing only one of the inputs, you have to know what all of the other orriginal inputs were.


To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

[email protected]----
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

<Prev in Thread] Current Thread [Next in Thread>