Hendrik, this doesn't exactly answer your question, but I do remember reading a thread on the lucene-dev list which became a jira ticket eventually - not that long ago.
Doug asked for something that sounds at least a little bit similar to what you're asking: https://issues.apache.org/jira/browse/SOLR-11698 Hope it's worth reading - Stefan On Dec 18, 2017 8:35 AM, "Hendrik Haddorp" <hendrik.hadd...@gmx.net> wrote: > 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 >