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

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

My concern with relying on sort() is that it requires reading all tuples before 
doing the sort. If we're just providing a way to order the generated tuples I 
think using a sort() stream would be too costly.

I agree that the result of each evaluator will be based on the original tuple. 
But if multiple evaluators, e1 and e2, are used then the resulting tuples will 
look like
{code}
{
  fieldA : e1[0],
  fieldB : e2[0],
  <other fields> 
},
{
  fieldA : e1[0],
  fieldB : e2[1],
  <other fields> 
},
{
  fieldA : e1[0],
  fieldB : e2[2],
  <other fields> 
},
{
  fieldA : e1[1],
  fieldB : e2[0],
  <other fields> 
},
{
  fieldA : e1[1],
  fieldB : e2[1],
  <other fields> 
},
{
  fieldA : e1[1],
  fieldB : e2[2],
  <other fields> 
},
{code}

> Add cartesian Streaming Expression to build cartesian products from 
> multi-value fields and text 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
>         Attachments: SOLR-10292.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to