You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by vishal patel <vi...@outlook.com> on 2020/11/27 05:19:34 UTC

Uploading Features in Solr 6.6

Hi

I have read the concept of "Learning To Rank".  I see the Example: /path/myFeatures.json

{
    "name" : "documentRecency",
    "class" : "org.apache.solr.ltr.feature.SolrFeature",
    "params" : {
      "q" : "{!func}recip( ms(NOW,last_modified), 3.16e-11, 1, 1)"
    }
  },
  {
    "name" : "isBook",
    "class" : "org.apache.solr.ltr.feature.SolrFeature",
    "params" : {
      "fq": ["{!terms f=cat}book"]
    }
  }

I want to make feature like q=title:"Test with some GB18030 encoded characters". Can I make?
Can I search sentence "test book" in terms like "fq": ["{!terms f=cat}test book"]?

I want to use q and fq same like normal in feature.

Regards,
Vishal Patel


Sent from Outlook<http://aka.ms/weboutlook>