lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Bernstein (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-10485) Add CalculateStream to allow Solr to behave like a scientific calculator
Date Wed, 12 Apr 2017 20:05:41 GMT

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

Joel Bernstein edited comment on SOLR-10485 at 4/12/17 8:05 PM:
----------------------------------------------------------------

A patch with the simple implementation.

I tested it manually and it worked.


was (Author: joel.bernstein):
A patch with the simple implementation.

I tested it manually at it worked.

> Add CalculateStream to allow Solr to behave like a scientific calculator
> ------------------------------------------------------------------------
>
>                 Key: SOLR-10485
>                 URL: https://issues.apache.org/jira/browse/SOLR-10485
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>         Attachments: SOLR-10485.patch
>
>
> The CalculateStream returns a single empty Tuple to support this syntax:
> {code}
> select(calc(), add(1, 1) as result)
> {code}
> This will simply add the calculation to the Tuple and return it, turning Solr into a
scientific calculator.



--
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


Mime
View raw message