[{ "name": "isBook",
"class": "org.apache.solr.ltr.feature.SolrFeature",
"params":{ "fq": ["{!terms f=category}book"] }
},
{
"name": "documentRecency",
"class": "org.apache.solr.ltr.feature.SolrFeature",
"params": {
"q": "{!func}recip( ms(NOW,publish_date), 3.16e-11, 1, 1)"
}
},
{
"name" : "userTextTitleMatch",
"class" : "org.apache.solr.ltr.feature.SolrFeature",
"params" : { "q" : "{!field f=title}${user_text}" }
},
{
"name":"book_price",
"class":"org.apache.solr.ltr.feature.FieldValueFeature",
"params":{"field":"book_price"}
},
{
"name":"originalScore",
"class":"org.apache.solr.ltr.feature.OriginalScoreFeature",
"params":{}
},
{
"name" : "userFromMobile",
"class" : "org.apache.solr.ltr.feature.ValueFeature",
"params" : { "value" : "${userFromMobile:}", "required":true }
}]
CECUEG
November 16, 2016Is there a way to get/store the features vectors from the QUERY_DOC_FV cache?
Alessandro Benedetti
November 25, 2016Hi Cecueg,
If you enabled the QUERY_DOC_FV cache, storing in the cache will happen automatically.
To retrieve entries of the cache, you could do :
1 watch the changes in the cache admin
2 there was a showItems param for Solr, need to verify if it is still working, but it was supposed to allow to see the entries for caches
Cheers
Webster
April 14, 2020When will Learning to Rank support Solr queres that group data using lucene?
Alessandro Benedetti
April 15, 2020Hi, there’s a bit of confusion in this question but I think I got the meaning.
Apache Solr wraps Apache Lucene, so the Apache Solr grouping functionality is built on top of the Lucene library.
Talking about Learning to Rank and grouping, you should follow this Jira : https://issues.apache.org/jira/browse/SOLR-8776
JOSIP LAZAREVSKI
September 10, 2020HI Alessandro! Great blog!
I wonder the following: I have CatBoostRegression model trained to clculate the scores for LTR.
How can I deploy this model to Solr?
I was reading and I could not find anything done similar.
Im thinking of using DefaultWrapperModel and pointing the exported model in JSON format.
MY question is, would this work or still i need to apply special formating to the extracted CatBoost model?
Many thanks!
Alessandro Benedetti
March 16, 2021Hi Josip,
I am utterly sorry for the immense delay, it was off my radar.
We’ll investigate a bit more about CatBoost models and let you know, we may end up with a dedicated post!
JOSIP LAZAREVSKI
March 16, 2021That would be awesome!! Looking forward to it!