Hello, you can not change similarities per request, and this is likely never
going to be supported for good reasons. You need multiple cores, or multiple
fields with different similarity defined in the same core.
Markus
-----Original message-----
> From:Parvesh Garg <parv...@zettata.com>
> Sent: Tuesday 8th March 2016 5:36
> To: solr-user@lucene.apache.org
> Subject: Multiple custom Similarity implementations
>
> Hi,
>
> We have a requirement where we want to run an A/B test over multiple
> Similarity implementations. Is it possible to define multiple similarity
> tags in schema.xml file and chose one using the URL parameter? We are using
> solr 4.7
>
> Currently, we are planning to have different cores with different
> similarity configured and split traffic based on core names. This is
> leading to index duplication and un-necessary resource usage.
>
> Any help is highly appreciated.
>
> Parvesh Garg,
>
> http://www.zettata.com
>