Suyash Sangale created SOLR-16014:
-------------------------------------

             Summary: Where can I run Streaming Expression in Solr. Also how 
can I get Cosine Similarity score in response
                 Key: SOLR-16014
                 URL: https://issues.apache.org/jira/browse/SOLR-16014
             Project: Solr
          Issue Type: Task
      Security Level: Public (Default Security Level. Issues are Public)
          Components: streaming expressions
    Affects Versions: 8.11.1, 8.11
            Reporter: Suyash Sangale


Where can I run Streaming Expression in Solr. 

Reference link - https://issues.apache.org/jira/browse/SOLR-12890

For example - 
sort(
  select(
     search(food_collection, 
            q="*:*", 
            fl="id,vector_fs", 
            sort="id asc", 
            rows=3), 
     cosineSimilarity(vector_fs, array(5.1,0.0,1.0,5.0,0.0,4.0,5.0,1.0)) as 
sim, 
     id), 
  by="sim desc")



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to