lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jimi HullegÄrd <jimi.hulleg...@mogul.com>
Subject RE: Calculation of fieldNorm causes irritating effect of sort order
Date Thu, 02 Oct 2008 14:55:21 GMT
Karl Wrote:
>
> 2 okt 2008 kl. 14.47 skrev Jimi HullegÄrd:
>
> > But apparently this setOmitNorms(true) also disables boosting
> > aswell. That is ok for now, but what if we want to use boosting in
> > the future? Is there no way to disable the length normalization
> > while still keeping the boost calculation?
>
> You can make Similarity#lengthNorm(String fieldName, int numTokens)
> return a constant (1f) to turn off length normalization but keep the
> index time boost.

Thanks for the suggestion, however the CMS has for some reasoned designed its search code
so that it is more or less impossible to change the Similarity implementation.

/Jimi

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