At this post Erik says:

"Sure, you can subclass DefaultSimilarity and override and tweak just
the lengthNorm() method. Be sure to use IndexWriter.setSimilarity()
to get your custom one used."

Well, I traced my own method lengthNorm and realized that this method is not 
being called.

The lengthNorm() method, I believe, is only called during indexing. Its purpose is to translate the number of terms that occurred in a given field, into a score factor that is used at query time.

Can you verify that you called IndexWriter.setSimilarity() (as above) before adding documents to the index? And then see if your lengthNorm() is then being called?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to