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 2017/03/17 02:34:41 UTC

[jira] [Commented] (SOLR-10292) Add cartesian Streaming Expression to build cartesian products from multi-value fields

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

Dennis Gove commented on SOLR-10292:
------------------------------------

I'm not a huge fan of the function name, but feature-wise I think this would be good.

{code}
cartesian(
  <stream>,
  by="field1,field2",
  sort="field1 ASC"
)
{code}

1. Supports any incoming stream
2. Allows you to do the product over multiple fields
3. Allows you to indicate a sort order for the new tuples, if not provided will default to incoming order of values in by fields

Anything I'm missing?

> Add cartesian Streaming Expression to build cartesian products from multi-value fields
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-10292
>                 URL: https://issues.apache.org/jira/browse/SOLR-10292
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>
> Currently all the Streaming Expression such as rollups, intersections, fetch etc, work on single value fields. The *cartesian* expression would create a stream of tuples from a single tuple with a multi-value field. This would allow multi-valued fields to be operated on by the wider library of Streaming Expression.
> For example a single tuple with a multi-valued field:
> id: 1
> author: [Jim, Jack, Steve]
> Would be transformed in the following three tuples:
> id:1
> author:Jim
> id:1
> author:Jack
> id:1
> author:Steve



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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