You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/05/05 18:37:04 UTC

[jira] [Commented] (SOLR-10559) Add let, get and tuple Streaming Expressions

    [ https://issues.apache.org/jira/browse/SOLR-10559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998747#comment-15998747 ] 

ASF subversion and git services commented on SOLR-10559:
--------------------------------------------------------

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


> Add let, get and tuple Streaming Expressions
> --------------------------------------------
>
>                 Key: SOLR-10559
>                 URL: https://issues.apache.org/jira/browse/SOLR-10559
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>         Attachments: SOLR-10559.patch, SOLR-10559.patch, SOLR-10559.patch, SOLR-10559.patch
>
>
> 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:
> {code}
> 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)))
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org