Fwiw, here's example of per field similarity
https://cwiki.apache.org/confluence/display/solr/Other+Schema+Elements
20 июня 2016 г. 2:49 пользователь "Shawn Heisey" <apa...@elyograg.org>
написал:

> 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
>
>

Reply via email to