Hi Solr Users,
Does LTR Solr Feature
<https://solr.apache.org/guide/8_7/learning-to-rank.html#feature-engineering>
support
streaming expressions? Steaming expr supports vector math
<https://solr.apache.org/guide/7_5/vector-math.html#dot-product-and-cosine-similarity>,
I am trying to configure stream apis vector math as a solr feature which
would fetch a vector from a document field and another from query param and
compute cosine or dot product.
For example, a LTR feature definition that would look like below, is this
supported? Does LTR solr feature support parsing streaming api requests and
its somewhat unique response that is not same as standard solr response?
{
"name": "vector_sim_score",
"class": "org.apache.solr.ltr.feature.SolrFeature",
"params": {
"q": "expr=dotProduct(search(collection_name,q="id:$uniq_id",fl="doc_vector",
sort="from asc", qt="/export"), ${query_vector})"
},
"store": "v1_feature_store"
}