You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Joel Bernstein (Jira)" <ji...@apache.org> on 2022/07/27 21:37:00 UTC

[jira] [Comment Edited] (SOLR-16287) MapStream - remap tuple value(s)

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

Joel Bernstein edited comment on SOLR-16287 at 7/27/22 9:36 PM:
----------------------------------------------------------------

I was think of nesting tuple within a tuple. The actual nesting that it's doing might not be a common transformation though. We could also make the function name specific to atomic update:

{code:java}
atomic(<stream>, field="cand_id") 
{code}




was (Author: joel.bernstein):
We could also make the function name specific to atomic update:

{code:java}
atomic(<stream>, field="cand_id") 
{code}


> MapStream - remap tuple value(s) 
> ---------------------------------
>
>                 Key: SOLR-16287
>                 URL: https://issues.apache.org/jira/browse/SOLR-16287
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: streaming expressions
>    Affects Versions: 9.0
>            Reporter: Dan Rosher
>            Priority: Minor
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Remap from (k,v) => k -> newKey -> value
> e.g.  with
> map(<stream>,"cand_id=add-distinct") , convert stream tuples from
> From
> {code:java}
> {"cand_id":5718,id:123,v_i:345}{code}
> To
> {code:java}
> {
>   id:123,
>   v_i:345,
>   "cand_id": {
>     "add-distinct": 5718
> }, {code}
> Useful for update stream for atomic updates.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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