Hi Ashwin, you may find interesting: https://sease.io/2020/03/introducing-weighted-synonyms-in-apache-lucene.html We use payloads for query time weighted synonyms
Cheers -------------------------- Alessandro Benedetti Apache Lucene/Solr Committer Director, R&D Software Engineer, Search Consultant www.sease.io On Mon, 5 Jul 2021 at 21:30, Ashwin Ramesh <ash...@canva.com.invalid> wrote: > Thanks Markus! > > On Tue, 6 Jul 2021, 5:11 am Markus Jelsma, <markus.jel...@openindex.io> > wrote: > > > Hello Ash, > > > > We rely heavily on payloads to do the Part-of-Speech scoring for user > > queries. When using edismax, you must translate all underlying Query > > objects to their Payload supported counterparts, i believe that is in > > the rewrite() method. Payloads are an excellent tool to distinguish > > homonyms, to make a distinction between verbs, nouns and proper nouns > > etc. > > > > I don't have our code at hand, but there is some ancient code > > available [1] that did just that. Just be aware that payloads have > > changed a lot in the decade. Nothing what you see there will work > > today. > > > > Regards, > > Markus > > > > [1] > > > http://digitalpebble.blogspot.com/2010/08/using-payloads-with-dismaxqparser-in.html > > > > 2021-07-05 8:06 GMT+02:00, Ashwin Ramesh <ash...@canva.com.invalid>: > > > Hi everyone, > > > > > > My team is exploring whether to use payload fields ( > > > https://lucidworks.com/post/solr-payloads/). Our use case is to have > > term, > > > double-value pair. E.g. dog|2.0, cat|3.1 etc. > > > > > > We would use this to boost based on a given term. However, I'm not sure > > > this field type will work with Edismax parser? Can anyone confirm? Also > > I'm > > > not sure about it's performance. > > > > > > There isn't a lot of info on the net about this field type. Maybe it's > > > silently not best-practise! Please let me know if this is the case. > > > > > > > > > Regards, > > > Ash > > > > > > -- > > > ** > > > ** <https://www.canva.com/>Empowering the world to design > > > Share accurate > > > information on COVID-19 and spread messages of support to your > community. > > > Here are some resources > > > < > > > https://about.canva.com/coronavirus-awareness-collection/?utm_medium=pr&utm_source=news&utm_campaign=covid19_templates > > > > > > > > > that can help. > > > <https://twitter.com/canva> <https://facebook.com/canva> > > > <https://au.linkedin.com/company/canva> <https://twitter.com/canva> > > > <https://facebook.com/canva> <https://au.linkedin.com/company/canva> > > > <https://instagram.com/canva> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > ** > ** <https://www.canva.com/>Empowering the world to design > Share accurate > information on COVID-19 and spread messages of support to your community. > Here are some resources > < > https://about.canva.com/coronavirus-awareness-collection/?utm_medium=pr&utm_source=news&utm_campaign=covid19_templates> > > that can help. > <https://twitter.com/canva> <https://facebook.com/canva> > <https://au.linkedin.com/company/canva> <https://twitter.com/canva> > <https://facebook.com/canva> <https://au.linkedin.com/company/canva> > <https://instagram.com/canva> > > > > > > > > > > >