Re: Contextual Synonym Filter

2018-09-05 Thread Ryan Yacyshyn
Hi Luca, I wonder if payloads might be able to solve your case for contextual synonyms? http://jorgelbg.github.io/posts/solr-contextual-synonyms Ryan On Mon, 3 Sep 2018 at 21:59 Andrea Gazzarini wrote: > Hi Luca, > I believe this is not an easy task to do passing through Solr/Lucene > int

Re: Contextual Synonym Filter

2018-09-03 Thread Andrea Gazzarini
Hi Luca, I believe this is not an easy task to do passing through Solr/Lucene internals; did you try to use what Solr offers out of the box? For example, you could define several fields associated where each corresponding field type uses a different synonym set. So you would have * F1 -> FT1

Re: Contextual Synonym Filter

2018-08-17 Thread Doug Turnbull
Would one option be to change the query analyzer at query time? The Match Query Parser (https://github.com/o19s/match-query-parser), would let you do this -Doug On Fri, Aug 17, 2018 at 8:04 AM Vergantini Luca wrote: > I need to create a contextual Synonym Filter: > > > > I need that the Synonym

RE: Contextual Synonym Filter

2018-08-17 Thread Markus Jelsma
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