lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: sorting by per doc hit count
Date Tue, 19 Dec 2006 17:35:58 GMT
"Mark Miller" <markrmiller@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message