Ah, I see, I should of course use the same similarity during indexing
and searching. Many thanks!
On 20/08/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: And then I made this subclass the default similarity. It worked well
: for tf but not for lengthNorm. The reason appears to be that the
: Te
I had a situation where I was only interested in whether the term was
there or not (not how many times), and I didn't want to penalize long
fields. So I wrote a Similariy subclass where I overrided the
following methods as this:
public float lengthNorm(String fieldName, int numTerms) {
ret