lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject Re: Similarity
Date Mon, 23 May 2011 19:41:26 GMT
As far as i know, SweetSpotSimilarty needs be configured. I did use it once but 
wrapped a factory around it to configure the sweet spot. It worked just as 
expected and explained in that paper about the subject.

If you use a custom similarity that , for example, caps tf to 1. Does it then 
work?



> Hi all,
> 
> I'm having trouble getting the basic similarity example to work. If you
> notice at the bottom of the schema.xml file, there is a line there that is
> commented out:
> 
> <!-- <similarity class="org.apache.lucene.search.DefaultSimilarity"/> -->
> 
> I uncomment that line and replace it with the following:
> 
> <similarity class="org.apache.lucene.misc.SweetSpotSimilarity"/>
> 
> Which comes natively with lucene. However, the scores before and after
> making this change are the same. I did a full import both times but that
> didn't seem to help.
> 
> I ran svn up on both my solr directory and my lucene directory. Actually,
> my lucene directory was not previously under svn so I removed everything
> in there and did svn co
> http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/
> 
> So why isn't my installation taking the SweetSpot Similarity change?
> 
> Thanks,
> 
> Brian Lamb

Mime
View raw message