Re: Creating a phrase match feature in LTR

2020-09-09 Thread krishan goyal
Hi, Can anyone help me on this ? I am stuck on this for days. On Tue, Sep 8, 2020 at 3:02 PM krishan goyal wrote: > Thanks Dmitry. > > Using > "q": "{!complexphrase inOrder=true}fieldName:${input}" > works for single token queries but raises same exception when input is > multi token > > Using

Re: Creating a phrase match feature in LTR

2020-09-08 Thread krishan goyal
Thanks Dmitry. Using "q": "{!complexphrase inOrder=true}fieldName:${input}" works for single token queries but raises same exception when input is multi token Using "q": "{!complexphrase inOrder=true df=fieldName}${input}" works for all types of tokens but the scoring logic isn't the same as "pf

Re: Creating a phrase match feature in LTR

2020-08-28 Thread Dmitry Kan
Hi Krishan, What if you remove the query() wrapping? { "name": "phraseMatch", "class": "org.apache.solr.ltr.feature.SolrFeature", "params": { "q": "{!complexphrase inOrder=true}fieldName:${input}" }, "store": "_DEFAULT_" } or even: { "name": "phraseMatch", "class": "org.apache

Creating a phrase match feature in LTR

2020-08-24 Thread krishan goyal
Hi, I am trying to create a phrase match feature (what "pf" does in dismax/edismax parsers) I've tried various ways to set it up { "name": "phraseMatch", "class": "org.apache.solr.ltr.feature.SolrFeature", "params": { "q": "{!complexphrase inOrder=true}query(fieldName:${input})" },