Hello, If you are using Dismax or Edismax, you can easily extend the QParser and reconstruct your analyzer on-the-fly, based on what you find in the filter query. Be sure to keep a cache of the analyzer because construction can be very heavy.
Check the Edismax code, it offers clear examples on how to do it, e.g. reconstructing the existing analyzer but without the StopFilter based on some parameter. Regards, Markus -----Original message----- > From:Vergantini Luca <l.vergant...@reply.it> > Sent: Friday 17th August 2018 14:04 > To: solr-user@lucene.apache.org > Subject: Contextual Synonym Filter > > I need to create a contextual Synonym Filter: > I need that the Synonym Filter load different synonym configuration based on > the fq query parameter. > Ive already modified the SynonymGraphFilterFactory to load from DB (this is > another requirement) but I cant understand how to make the fq parameter > arrive to the Factory. > Maybe I need a Query Parser plugin? > Please help > > > Luca Vergantini > > Whitehall Reply > > Via del Giorgione, 59 > 00147 - Roma - ITALY > phone: +39 06 844341 > l.vergant...@reply.it <mailto:l.vergant...@reply.it> > www.reply.it <www.reply.it> > <> > >