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

Dan Rosher commented on SOLR-16287:
-----------------------------------

It started out as a means to do atomic updates with update stream, but it could 
be used for more generic things, for example:
{code:java}
map(map(tuple(a="123",c="345"),"a=inner"),"a=outer"){code}
becomes:
{code:java}
{
        "a": {
          "outer": {
            "inner": "123"
          }
        },
        "c": "345"
      }{code}
To cover both cases, would map be a suitable name to continue using?

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to