Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4C481200C68 for ; Wed, 3 May 2017 08:45:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4AD5D160BB5; Wed, 3 May 2017 06:45:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8F823160BAA for ; Wed, 3 May 2017 08:45:20 +0200 (CEST) Received: (qmail 68014 invoked by uid 500); 3 May 2017 06:45:19 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 68002 invoked by uid 99); 3 May 2017 06:45:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 06:45:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 04D4AC1446 for ; Wed, 3 May 2017 06:45:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.604 X-Spam-Level: X-Spam-Status: No, score=0.604 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8qeg724m8EXo for ; Wed, 3 May 2017 06:45:16 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2F4CD5FB62 for ; Wed, 3 May 2017 06:45:16 +0000 (UTC) Received: by mail-io0-f171.google.com with SMTP id r16so179475292ioi.2 for ; Tue, 02 May 2017 23:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ytJ8XxPzct/y5LbxysKPalPPMAbXsdZODsTJv86oevI=; b=JBAS+aMTmliCuhv/BxibJScCPkooQsOS6y3muGR6JR40TnSmtO5lZAj+Avajjed7nE eF9OXy6yei2CI5HavsmJywwvl9uE6B+pQ8DqxUQ1yVQwJ3LN31/22FKT2Svm2BwUhvhW gv3nSdjShdyLdrC7LkP6elHEW7yUTbYfYg4/oX8HjkBZknnd58nHiDb9T+n5hZKcND9Q 6JoctbWJl2YagwnUkJ5GlxqyiCp2Vlh89A6CJ3d3geJv2uHAh99RHcB/BCbNfCH9D+mJ B0vPKQ3ZJVRprck3CwuEAKYHIu5zKPBWO7aELguPE+kdk7KRsUkucVh4yU0XQcBqRxXa MTng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ytJ8XxPzct/y5LbxysKPalPPMAbXsdZODsTJv86oevI=; b=FYWvj9/ns753YFSC5HNOt0zoV9owuLlGtJWSjTbXDt2BalqkNOb5S4HQhHMrhWS3zX O4dmvhzIzD69nKgTqad2uABa3vnt0SOpa93OCCw9olE3OsutRmbPL0LEdDwCvqQ+ZskQ /9ckHr/Xs8dYQrg7BuXIglnqJn8V8NHOXfdX89YhXW+tI4uNFAFA3XqR5Ivuah78sjB6 vwIiT6FHuX1IEgNhUYGovasoj0s71E3fh0JI9glevvpHvuVubaLGTF0Ps2q1XsbJz/UG dfb8XDaofnUM67U3dWYMIVnEWpxGNFbkLfHDQAopZH+tow4l4CCOifEjHRhFbN7XNecH Q9mg== X-Gm-Message-State: AN3rC/7yYSAQ8a+OggTMtAgFPG8KMcSAHXfsBCzlY4cIB2gD+U8SCoa/ Yfa+WcFxG4XQ5MEEIi1fBFLAZ7NnMfE8wEQ= X-Received: by 10.107.180.139 with SMTP id d133mr30915039iof.47.1493793914891; Tue, 02 May 2017 23:45:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.89.133 with HTTP; Tue, 2 May 2017 23:45:14 -0700 (PDT) In-Reply-To: References: From: Zheng Lin Edwin Yeo Date: Wed, 3 May 2017 14:45:14 +0800 Message-ID: Subject: Re: Joining more than 2 collections To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=94eb2c06bb1eaa3534054e98ff71 archived-at: Wed, 03 May 2017 06:45:21 -0000 --94eb2c06bb1eaa3534054e98ff71 Content-Type: text/plain; charset=UTF-8 Hi Joel, I am getting this error when I used the innerHashJoin. "EXCEPTION":"Invalid stream expression innerHashJoin(parallel(innerJoin I also can't find the documentation on innerHashJoin for the Streaming Expressions. Are you referring to hashJoin? Regards, Edwin On 3 May 2017 at 13:20, Zheng Lin Edwin Yeo wrote: > Hi Joel, > > Thanks for the info. > > Regards, > Edwin > > > On 3 May 2017 at 02:04, Joel Bernstein wrote: > >> Also take a look at the documentation for the "fetch" streaming >> expression. >> >> Joel Bernstein >> http://joelsolr.blogspot.com/ >> >> On Tue, May 2, 2017 at 2:03 PM, Joel Bernstein >> wrote: >> >> > Yes you join more then one collection with Streaming Expressions. Here >> are >> > a few things to keep in mind. >> > >> > * You'll likely want to use the parallel function around the largest >> join. >> > You'll need to use the join keys as the partitionKeys. >> > * innerJoin: requires that the streams be sorted on the join keys. >> > * innerHashJoin: has no sorting requirement. >> > >> > So a strategy for a three collection join might look like this: >> > >> > innerHashJoin(parallel(innerJoin(bigStream, bigStream)), smallerStream) >> > >> > The largest join can be done in parallel using an innerJoin. You can >> then >> > wrap the stream coming out of the parallel function in an innerHashJoin >> to >> > join it to another stream. >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > Joel Bernstein >> > http://joelsolr.blogspot.com/ >> > >> > On Mon, May 1, 2017 at 9:42 PM, Zheng Lin Edwin Yeo < >> edwinyeozl@gmail.com> >> > wrote: >> > >> >> Hi, >> >> >> >> Is it possible to join more than 2 collections using one of the >> streaming >> >> expressions (Eg: innerJoin)? If not, is there other ways we can do it? >> >> >> >> Currently, I may need to join 3 or 4 collections together, and to >> output >> >> selected fields from all these collections together. >> >> >> >> I'm using Solr 6.4.2. >> >> >> >> Regards, >> >> Edwin >> >> >> > >> > >> > > --94eb2c06bb1eaa3534054e98ff71--