Hi - That is impossible. But you can construct many analyzers instead.
-----Original message-----
> From:Hendrik Haddorp <hendrik.hadd...@gmx.net>
> Sent: Monday 18th December 2017 8:35
> To: solr-user <solr-user@lucene.apache.org>
> Subject: request dependent analyzer
>
> Hi,
>
> currently we use a lot of small collections that all basically have the
> same schema. This does not scale too well. So we are looking into
> combining multiple collections into one. We would however like some
> analyzers to behave slightly differently depending on the logical
> collection. We would for example like to use different synonyms in the
> different logical collections. Is there any clean way on how to do that,
> like somehow access request parameters from an analyzer?
>
> regards,
> Hendrik
>