I believe I've discovered a workaround. If you use:

    {
        "store": "redhat_efi_feature_store",
        "name": "case_description_issue_tfidf",
        "class": "org.apache.solr.ltr.feature.SolrFeature",
        "params": {
            "q":"{!dismax qf=text_tfidf}${text}"
        }
    }

instead of:

    {
        "store": "redhat_efi_feature_store",
        "name": "case_description_issue_tfidf",
        "class": "org.apache.solr.ltr.feature.SolrFeature",
        "params": {
            "q": "{!field f=issue_tfidf}${case_description}"
        }
    }

you can then use single quotes to incorporate multi-term arguments as
Alessandro suggested. I've added this information to the Jira.

On Fri, Sep 22, 2017 at 8:30 AM, alessandro.benedetti <a.benede...@sease.io>
wrote:

> I think this has nothing to do with the LTR plugin.
> The problem here should be just the way you use the local params,
> to properly pass multi term local params in Solr you need to use *'* :
>
> efi.case_description='added couple of fiber channel'
>
> This should work.
> If not only the first term will be passed as a local param and then passed
> in the efi map to LTR.
>
> I will update the Jira issue as well.
>
> Cheers
>
>
>
>
>
> -----
> ---------------
> Alessandro Benedetti
> Search Consultant, R&D Software Engineer, Director
> Sease Ltd. - www.sease.io
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>

Reply via email to