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

Add let, get and tuple Streaming Expressions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 6.6, 7.0
    • None
    • None

    Description

      The let and get Streaming Expressions allows the tuples in a stream to be assigned to a variable so it can be used more then once during an expression.

      This builds on the list and cell expressions (SOLR-10551)

      Here is the sample syntax:

      let(cell(a, expr), 
          cell(b, expr), 
          list(cell(a, get(a)),
               cell(b, get(b)),
               cell(correlation, correlate(get(a), fielda, get(b), fieldb)))
      

      In the example above the let expression is saving the contents of two cell expressions (a, b). The get expression is retrieving the tuples and using them later in the expression.

      So for example two facet expressions could be stored in the let, and then displayed and correlated later in the expression.

      Attachments

        1. SOLR-10559.patch
          12 kB
          Joel Bernstein
        2. SOLR-10559.patch
          14 kB
          Joel Bernstein
        3. SOLR-10559.patch
          15 kB
          Joel Bernstein
        4. SOLR-10559.patch
          17 kB
          Joel Bernstein

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jbernste Joel Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment