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

Add let, get and tuple Streaming Expressions

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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.

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

        Issue Links

          Activity

          Hide
          joel.bernstein Joel Bernstein added a comment - - edited

          First pass at the implementations. No tests yet.

          Show
          joel.bernstein Joel Bernstein added a comment - - edited First pass at the implementations. No tests yet.
          Hide
          joel.bernstein Joel Bernstein added a comment -

          Added a simple test

          Show
          joel.bernstein Joel Bernstein added a comment - Added a simple test
          Hide
          joel.bernstein Joel Bernstein added a comment -

          Added a test to ensure there are no side effects when tuples are changed following a get()

          Show
          joel.bernstein Joel Bernstein added a comment - Added a test to ensure there are no side effects when tuples are changed following a get()
          Hide
          joel.bernstein Joel Bernstein added a comment -

          Add test with multiple lets

          Show
          joel.bernstein Joel Bernstein added a comment - Add test with multiple lets
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit cd02dd7d4afcbd1dbbe20b1e5c700d4b7c8a8302 in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cd02dd7 ]

          SOLR-10559: Add let and get Streaming Expressions

          Show
          jira-bot ASF subversion and git services added a comment - Commit cd02dd7d4afcbd1dbbe20b1e5c700d4b7c8a8302 in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cd02dd7 ] SOLR-10559 : Add let and get Streaming Expressions
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e57fab17c0d440cfa9e54d87001bc9691e8ed53d in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e57fab1 ]

          SOLR-10559: Cleaner syntax

          Show
          jira-bot ASF subversion and git services added a comment - Commit e57fab17c0d440cfa9e54d87001bc9691e8ed53d in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e57fab1 ] SOLR-10559 : Cleaner syntax
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e4d4e582a0049de34990fcff3df5fb220f14ee4b in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e4d4e58 ]

          SOLR-10559: Fixed compilation error

          Show
          jira-bot ASF subversion and git services added a comment - Commit e4d4e582a0049de34990fcff3df5fb220f14ee4b in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e4d4e58 ] SOLR-10559 : Fixed compilation error
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 02167d06d4aa7bb293c8489f37d59ec0707d1e31 in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=02167d0 ]

          SOLR-10559: Fix precommit

          Show
          jira-bot ASF subversion and git services added a comment - Commit 02167d06d4aa7bb293c8489f37d59ec0707d1e31 in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=02167d0 ] SOLR-10559 : Fix precommit
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 460b3b36e9544b4be75cf1d25c89d8bde8ec5c74 in lucene-solr's branch refs/heads/master from Dennis Gove
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=460b3b3 ]

          SOLR-10559: Updates TupStream and enhances evaluators to work over values in the SteamContext

          Show
          jira-bot ASF subversion and git services added a comment - Commit 460b3b36e9544b4be75cf1d25c89d8bde8ec5c74 in lucene-solr's branch refs/heads/master from Dennis Gove [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=460b3b3 ] SOLR-10559 : Updates TupStream and enhances evaluators to work over values in the SteamContext
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit b705217bec9706f26c0f45ed6917773bb2d033e3 in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b705217 ]

          SOLR-10559: Remove debuggin

          Show
          jira-bot ASF subversion and git services added a comment - Commit b705217bec9706f26c0f45ed6917773bb2d033e3 in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b705217 ] SOLR-10559 : Remove debuggin
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit ee8ce57e51e488a706f9ec64825ad23bda07afdf in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ee8ce57 ]

          SOLR-10559: Fix TupStream to respect field order

          Show
          jira-bot ASF subversion and git services added a comment - Commit ee8ce57e51e488a706f9ec64825ad23bda07afdf in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ee8ce57 ] SOLR-10559 : Fix TupStream to respect field order
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 91b446e627458b830f2706a23e976cb732e09779 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=91b446e ]

          SOLR-10559: Fixed compilation error

          Show
          jira-bot ASF subversion and git services added a comment - Commit 91b446e627458b830f2706a23e976cb732e09779 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=91b446e ] SOLR-10559 : Fixed compilation error
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e3ca586b2ac973739c5d2b04a4e1206cd0c951c5 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e3ca586 ]

          SOLR-10559: Fix precommit

          Show
          jira-bot ASF subversion and git services added a comment - Commit e3ca586b2ac973739c5d2b04a4e1206cd0c951c5 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e3ca586 ] SOLR-10559 : Fix precommit
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e0a94f675710f785aa1340fb548d029fd75be60d in lucene-solr's branch refs/heads/branch_6x from Dennis Gove
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e0a94f6 ]

          SOLR-10559: Updates TupStream and enhances evaluators to work over values in the SteamContext

          Show
          jira-bot ASF subversion and git services added a comment - Commit e0a94f675710f785aa1340fb548d029fd75be60d in lucene-solr's branch refs/heads/branch_6x from Dennis Gove [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e0a94f6 ] SOLR-10559 : Updates TupStream and enhances evaluators to work over values in the SteamContext
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 0ccd3f4b8bedc27c6e6e430458c6331d5ea5e636 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0ccd3f4 ]

          SOLR-10559: Remove debuggin

          Show
          jira-bot ASF subversion and git services added a comment - Commit 0ccd3f4b8bedc27c6e6e430458c6331d5ea5e636 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0ccd3f4 ] SOLR-10559 : Remove debuggin
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 3fdbbb7c6f95b64b73903a0372cae4c339678709 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3fdbbb7 ]

          SOLR-10559: Fix TupStream to respect field order

          Show
          jira-bot ASF subversion and git services added a comment - Commit 3fdbbb7c6f95b64b73903a0372cae4c339678709 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3fdbbb7 ] SOLR-10559 : Fix TupStream to respect field order
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit b18c182d42a659a56f33e197d588596eda1f4af7 in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b18c182 ]

          SOLR-10559: Update CHANGES.txt

          Show
          jira-bot ASF subversion and git services added a comment - Commit b18c182d42a659a56f33e197d588596eda1f4af7 in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b18c182 ] SOLR-10559 : Update CHANGES.txt
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit bccb4599af4447a6e8601b24d9dbf19582d97a11 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=bccb459 ]

          SOLR-10559: Update CHANGES.txt

          Show
          jira-bot ASF subversion and git services added a comment - Commit bccb4599af4447a6e8601b24d9dbf19582d97a11 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=bccb459 ] SOLR-10559 : Update CHANGES.txt
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 057451ac643b134dda3f685c5ffec1b2cdc23dc0 in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=057451a ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit 057451ac643b134dda3f685c5ffec1b2cdc23dc0 in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=057451a ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit a827a9d909b38ea9bcd466e1b5ce3f7685cc6a3e in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=a827a9d ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit a827a9d909b38ea9bcd466e1b5ce3f7685cc6a3e in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=a827a9d ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 5b93b738b1df85c66044ac5d9ec3a64a96b42e62 in lucene-solr's branch refs/heads/master from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5b93b73 ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit 5b93b738b1df85c66044ac5d9ec3a64a96b42e62 in lucene-solr's branch refs/heads/master from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5b93b73 ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c92bb3d34e4e543cfdc583e3594af598f4c1e4a7 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c92bb3d ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit c92bb3d34e4e543cfdc583e3594af598f4c1e4a7 in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c92bb3d ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 8b5e77c480da3da47951e341f4e0e6b3cd76cb1e in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8b5e77c ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit 8b5e77c480da3da47951e341f4e0e6b3cd76cb1e in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8b5e77c ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1e9b7103d526eb1557218997e73665d2a5ee0afe in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1e9b710 ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1e9b7103d526eb1557218997e73665d2a5ee0afe in lucene-solr's branch refs/heads/branch_6x from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1e9b710 ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c3b192aed2c1b662db064dd37ffc247c01881cc6 in lucene-solr's branch refs/heads/branch_6_6 from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c3b192a ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit c3b192aed2c1b662db064dd37ffc247c01881cc6 in lucene-solr's branch refs/heads/branch_6_6 from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c3b192a ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c2f2a43acb9b4a94a1622a4d1feff922353fd09e in lucene-solr's branch refs/heads/branch_6_6 from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c2f2a43 ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit c2f2a43acb9b4a94a1622a4d1feff922353fd09e in lucene-solr's branch refs/heads/branch_6_6 from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c2f2a43 ] SOLR-10559 : Add tuple documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 90b38791873f943557f747af3f13327fd4ae3245 in lucene-solr's branch refs/heads/branch_6_6 from Joel Bernstein
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=90b3879 ]

          SOLR-10559: Add tuple documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit 90b38791873f943557f747af3f13327fd4ae3245 in lucene-solr's branch refs/heads/branch_6_6 from Joel Bernstein [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=90b3879 ] SOLR-10559 : Add tuple documentation

            People

            • Assignee:
              Unassigned
              Reporter:
              joel.bernstein Joel Bernstein
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development