You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Cassandra Targett (Jira)" <ji...@apache.org> on 2021/08/14 19:52:00 UTC

[jira] [Updated] (SOLR-10485) Add calc() Streaming Expression

     [ https://issues.apache.org/jira/browse/SOLR-10485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassandra Targett updated SOLR-10485:
-------------------------------------
    Component/s: streaming expressions

> Add calc() Streaming Expression
> -------------------------------
>
>                 Key: SOLR-10485
>                 URL: https://issues.apache.org/jira/browse/SOLR-10485
>             Project: Solr
>          Issue Type: New Feature
>          Components: streaming expressions
>            Reporter: Joel Bernstein
>            Priority: Major
>         Attachments: SOLR-10485.patch
>
>
> The calc() function can be used inside of the select function to execute Evaluators:
> {code}
> select(calc(), add(1, 1) as result)
> {code}
> The example above returns a single Tuple with the result of add(1, 1) in the *result* field. This allows Streaming Expressions to perform calculations directly without requiring an underlying stream.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org