Thanks, interesting ticket (missed it, following now), this is similar what we use. Construct an analyzer (or get from cache) with a field as argument as its base config. But allow Java's variable arguments syntax that you can use for adding or disabling filters, or modifying a specific filter's parameters.
Regards, Markus -----Original message----- > From:Stefan Matheis <ste...@mathe.is> > Sent: Monday 18th December 2017 23:02 > To: solr-user@lucene.apache.org > Subject: Re: request dependent analyzer > > 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 > > >