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

Add recNum Stream Evaluator

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: 8.2
    • Component/s: streaming expressions
    • Labels:
      None

      Description

      The recNum Stream Evaluator will return the index of the tuple in the stream. It is designed to be used with the select expression to append the index of the tuple to tuples in the stream.

      Syntax:

      having(select(search(testapp),
                    id,
                    recNum() as recNum),
             and(gt(recNum, 3), lt(recNum, 6)))

      Returns:

      { "result-set": { "docs": [ 
      { "recNum": 4, "id": "2e65eac8-7051-4a11-8409-b89e910bfedc" }, 
      { "recNum": 5, "id": "70edbf04-7dec-4e7f-86bb-71b97e737457" }, 
      { "EOF": true, "RESPONSE_TIME": 12 } ] } }

       

       

       

        Attachments

        1. SOLR-13552.patch
          5 kB
          Joel Bernstein

          Activity

            People

            • Assignee:
              jbernste Joel Bernstein
              Reporter:
              jbernste Joel Bernstein
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: