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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to