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

Dennis Gove commented on SOLR-8556:
-----------------------------------

{code}
expression.addParameter(new StreamExpressionNamedParameter("fields",fieldsStr));
{code}

If the ConcatOperation was created using the non-expression constructor then 
fieldsStr will unset and as such this won't produce the expected result. 
Instead, I'd iterate over the fields array and create a comma-separated list. 
This would allow the removal of the global fieldsStr.

> Add ConcatOperation to be used with the SelectStream
> ----------------------------------------------------
>
>                 Key: SOLR-8556
>                 URL: https://issues.apache.org/jira/browse/SOLR-8556
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Joel Bernstein
>            Assignee: Joel Bernstein
>         Attachments: SOLR-8556.patch
>
>
> Now that we have the UpdateStream it would be nice to support the use case of 
> sending rolled up aggregates for storage in another SolrCloud collection. To 
> support this we'll need to create id's for the aggregate records.
> The ConcatOperation would allows us to concatenate the bucket values into a 
> unique id. For example:
> {code}
> update(
>             select( 
>                          rollup(search(q="*:*, fl="a,b,c", ...)), 
>                          concat(fields="a,b,c", delim="_",  as="id")))
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to