You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2015/11/25 19:08:11 UTC
[jira] [Comment Edited] (SOLR-8337) Add ReduceOperation and wire
into the ReducerStream
[ https://issues.apache.org/jira/browse/SOLR-8337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15025697#comment-15025697 ]
Joel Bernstein edited comment on SOLR-8337 at 11/25/15 6:08 PM:
----------------------------------------------------------------
First crack at adding the ReduceOperation to the ReducerStream.
I'll create a GroupOperation that will emit a single Tuple with a list of all the Tuples in a group.
{code}
reduce(
search(collection1,
q="*:*",
qt="/export",
fl="id,a_s,a_i,a_f",
sort="a_s asc, a_f asc"),
by="a_s",
group(sort="a_f asc", n="20"))
{code}
was (Author: joel.bernstein):
First crack at adding the ReduceOperation to the ReducerStream.
I'll create a GroupOperation that will emit a single Tuple with a list of all the Tuples in a group.
{code}
reduce( search(collection1,
q="*:*",
qt="/export",
fl="id,a_s,a_i,a_f",
sort="a_s asc, a_f asc"),
by="a_s",
group(sort="a_f asc", n="20"))
{code}
> Add ReduceOperation and wire into the ReducerStream
> ---------------------------------------------------
>
> Key: SOLR-8337
> URL: https://issues.apache.org/jira/browse/SOLR-8337
> Project: Solr
> Issue Type: Bug
> Reporter: Joel Bernstein
> Attachments: SOLR-8337.patch, SOLR-8337.patch, SOLR-8337.patch
>
>
> This is a very simple ticket to create new interface that extends the StreamOperation. The interface will be called the ReduceOperation.
> In the near future the ReducerStream will be changed to accept a ReduceOperation. This will allow users to pass in the specific reduce algorithm to the ReducerStream, making the ReducerStream much more powerful.
--
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