lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: SweetSpotSimilarity
Date Fri, 25 Jun 2010 17:09:46 GMT
> Would someone mind explaining how this differs from the
> DefaultSimilarity?

The difference is length normalization. Default one punishes long documents.

"Sweet one computes to a constant norm for all lengths in
the [min,max] range (the "sweet spot"), and smaller norm
values for lengths out of this range. Documents shorter or
longer than the sweet spot range are "punished""

Section 4.1

> Also how would one replace the use of the DefaultSimilarity
> class with this
> one? I can't seem to find any such configuration in
> solrconfig.xml.

it is in schema.xml:

<similarity class=""/>


View raw message