lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: sorting by per doc hit count
Date Tue, 19 Dec 2006 21:03:52 GMT
Foolish me...override a static method...silly silly. Still, I think 
there must be some way. I don't care about the field 
normalization...there must be some way to make it return a constant 1 
when using a new Similarity class.

Doron Cohen wrote:
> "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
>
>
>   

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