On 6/19/2016 4:09 AM, dirmanhafiz wrote: > Hi , Im Dirman and im trying experiment solr with sweetspot similarity,, > can someone tell me min max in sweetspot similarity is about lengthdoc ? > i have average lengthdoc 3-205 tokens / doc and why while i wrote in my > schema.xml parameter sweetspot similairity didnt work ? > > <field name="textSS" type="text_generalSS" indexed="true" stored="false" > multiValued="true" > > > <similarity class="solr.SweetSpotSimilarityFactory"> > <int name="lengthNormMin">10</int> > <int name="lengthNormMax">50</int> > <float name="lengthNormSteepness">0.5</float> > </similarity> > > </field>
I do not think you can specify similarity on a per-field basis like that. I think that the similarity must be defined at the top schema level, and it applies to the entire collection (or core for non-cloud mode). Thanks, Shawn