You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dennis Gove (JIRA)" <ji...@apache.org> on 2016/01/19 17:35:39 UTC

[jira] [Comment Edited] (SOLR-8556) Add ConcatOperation to be used with the SelectStream

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

Dennis Gove edited comment on SOLR-8556 at 1/19/16 4:34 PM:
------------------------------------------------------------

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

If the ConcatOperation was created using the non-expression constructor then fieldsStr will be 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.


was (Author: dpgove):
{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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org