lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <>
Subject Re: Calculation of fieldNorm causes irritating effect of sort order
Date Thu, 02 Oct 2008 14:21:04 GMT

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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message