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> > > > > > > > > > > >