Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16014

Where can I run Streaming Expression in Solr. Also how can I get Cosine Similarity score in response

    XMLWordPrintableJSON

Details

    Description

      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")

      Attachments

        Activity

          People

            Unassigned Unassigned
            suyash2310 Suyash Sangale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: