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 2019/06/15 17:55:00 UTC
[jira] [Commented] (SOLR-13552) Add recNum Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-13552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864810#comment-16864810 ]
ASF subversion and git services commented on SOLR-13552:
--------------------------------------------------------
Commit 03e7205c89598c0f96168601ea732457b3af42f6 in lucene-solr's branch refs/heads/master from Joel Bernstein
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=03e7205 ]
SOLR-13552: Add recNum Stream Evaluator
> Add recNum Stream Evaluator
> ---------------------------
>
> Key: SOLR-13552
> URL: https://issues.apache.org/jira/browse/SOLR-13552
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Components: streaming expressions
> Reporter: Joel Bernstein
> Assignee: Joel Bernstein
> Priority: Minor
> Fix For: 8.2
>
> Attachments: SOLR-13552.patch
>
>
> The *recNum* Stream Evaluator will return the index of the tuple in the stream. It is designed to be used with the *select* expression to append the index of the tuple to tuples in the stream.
> Syntax:
> {code:java}
> having(select(search(testapp),
> id,
> recNum() as recNum),
> and(gt(recNum, 3), lt(recNum, 6))){code}
> Returns:
> {code:java}
> { "result-set": { "docs": [
> { "recNum": 4, "id": "2e65eac8-7051-4a11-8409-b89e910bfedc" },
> { "recNum": 5, "id": "70edbf04-7dec-4e7f-86bb-71b97e737457" },
> { "EOF": true, "RESPONSE_TIME": 12 } ] } }{code}
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org