If you need to aggregate after the join then you'll need to use the
rollup() function.

The rollup function requires the tuples be sorted by the group by fields.
So it's easiest to accomplish this using the hashOuterJoin, which doesn't
require a sort on the join keys.

If you're doing a parallel join, you'll need to wrap the rollup() around
the parallel() function unless the partionKeys for the join are the same as
the rollup group by.

Here is the psuedo code for a non-parallel join then rollup:

rollup(hashOuterJoin(search(), search()))

Here is the psuedo code for parallel join then rollup:

rollup(parallel(outerHashJoin(search(),search())


In both cases the searches should be sorted by the rollup() group by
fields. In the parallel case, the partitionKeys need to be the join keys.








Joel Bernstein
http://joelsolr.blogspot.com/

On Fri, Aug 5, 2016 at 7:21 AM, vrindavda <vrinda...@gmail.com> wrote:

> Hello,
> I have two collections and need to join the results on uniqueIds.
>
> I am able to do that with Streaming Expressions- LeftOuterJoin. Is there
> any
> way to use facets along with this?
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/Solr-6-Use-facet-with-Streaming-Expressions-
> LeftOuterJoin-tp4290526.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to