Thanks for the tip Doron,

What if I replace the decode static method in Similiarity so that it returns 1 always for the HitPerDocSimiliarity? This would not require a re-index right?

Doron Cohen wrote:
"Mark Miller" <[EMAIL PROTECTED]> wrote on 19/12/2006 09:21:00:
LIA mentioned something about needing to rebuild the
index if you change Similarity's. That does not make
sense to me yet. It would seem you could alternate them.
What does scoring have to do with indexing?

For this part of your question, the length norms of fields are computed at
indexing time and stored in the index (as field norms). If your modified
Similarity changes the length norm computation, re-indexing is required.
See
http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similarity.html#formula_norm


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