Phrase query as feature in LTR not working

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Phrase query as feature in LTR not working

AshB
Phrase query is not working when applied in LTR.

Feature supplied is
 {
    "name" : "isPook",
    "class" : "org.apache.solr.ltr.feature.SolrFeature",
    "params" : {
      "fq": ["{!type=edismax qf=text v=$qq}&qq=\"${query}\""]
    }
  }

Tested this feature outside and it returns only one result ,i.e phrase but
with LTR it is matching on terms

http://localhost:8983/solr/techproducts/query?q=game%20of%20thrones&fl=id,name,[features%20*efi.query=thrones%20of%20game*],name,cat&debug=true

"response":{"numFound":6,"start":0,"docs":[
      {
        "id":"05535734023",
        "cat":["book"],
        "name":"A Thrones of Game",
       
"[features]":"documentRecency=0.02011838,isBook=1.0,*isPook=1.0*,originalScore=8.337603"},
      {
        "id":"05535734021",
        "cat":["book"],
        "name":"A Game of meeting Thrones",
       
"[features]":"documentRecency=0.02011838,isBook=1.0,*isPook=1.0*,originalScore=8.179235"},

How to set the feature so that it score only the first document containing
the phrase




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html