From solr-user-return-148876-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Jul 19 15:27:19 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9BE0E180665 for ; Fri, 19 Jul 2019 17:27:19 +0200 (CEST) Received: (qmail 80032 invoked by uid 500); 19 Jul 2019 15:27:15 -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 80019 invoked by uid 99); 19 Jul 2019 15:27:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2019 15:27:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6004A1A415C for ; Fri, 19 Jul 2019 15:27:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.801 X-Spam-Level: ** X-Spam-Status: No, score=2.801 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id coq_dRlrSzPJ for ; Fri, 19 Jul 2019 15:27:12 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.173; helo=mail-lj1-f173.google.com; envelope-from=joelsolr@gmail.com; receiver= Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 2536BBC7AD for ; Fri, 19 Jul 2019 15:27:12 +0000 (UTC) Received: by mail-lj1-f173.google.com with SMTP id v18so31130248ljh.6 for ; Fri, 19 Jul 2019 08:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7nso0K2LoJrMAvVrHmqlilyHcPP6g49JyamUcaFtajo=; b=DWDkyMi0SRFtRAbueLvZT7N87adfujUsmXnFCly6bCyu5zo5+4QMWn5qf4fuMjW2vg 5g/+s3zycLpP7OQfKj7sQb0GNaXM9T/MA5zKFmy1B1YoNvS46/ByHRgv+cAQI6nLAk/X W9i/Cd04V9IsbjhGp0ID644SXZS1DsGOqUsMfa+VQJVfs96fjoHWm+W8N8gFgxFEqDXY 3BfFMZhe2pt7f2g/sizBNvexmUURIYpKC/hDP+Bpecl49nfT95wrW3OqLSdq2ZMQzTlC bQuja67MI43nLmEMOUJV5HWElO2c3ZUzZsrSicaIsGyGz6IbNTtGP+hWyNznL8i7lCEj CJGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7nso0K2LoJrMAvVrHmqlilyHcPP6g49JyamUcaFtajo=; b=uR/enBCTerhcDW7B1tpBU8u9K4QpN2VTBYpb+KHtp426C2pgYjqP3kwcUtmbj/rotp Vl/qYOcEyRG8r3Lz8GHnXA++pPmfAPMk1LrlY53DdUom6VnFAeOD21/CUykgf9wuEaW/ nS5Dfz2niaxlx5zi5rfiF/hgMqOj8lRMc1jS3otNmu/dVIiCLt4HEzBZZs4bL3/50jKK ZsbYTr7vAFz1SjuVsYk5oEeEgmh6Fy5EGhwEI3nlEjv17y/xklN/gF104bpHHknFdZ7L hGJ1DPSPnDcdHS4LhF28OFhWWRfFm5GP6SXwYGePUufuEgWRetcaqibkLNU8JnOeJMJE yRgQ== X-Gm-Message-State: APjAAAXKKCLDfv8Zm+3cpBdqCZ8SA/4iGn/N4S6el3OrjYltYCZuaj6Y oqYEGxtm2mmjEWd/EYfJL8KJaIQp+TavCsYxJdK7yka1 X-Google-Smtp-Source: APXvYqz4JNrL5l1Sg2PUK6HvVg4o7kk+/gCUgarzCtXPwx9YzutOPWAvruK0RTugitwkCuH8LBI0QKsFoGClK7xDcug= X-Received: by 2002:a2e:b009:: with SMTP id y9mr16909541ljk.152.1563550024793; Fri, 19 Jul 2019 08:27:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Joel Bernstein Date: Fri, 19 Jul 2019 11:26:53 -0400 Message-ID: Subject: Re: Returning multiple fields in graph streaming expression response documents To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="000000000000d103c9058e0a5bc4" --000000000000d103c9058e0a5bc4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Try: fetch(names, select( nodes(emails, walk=3D"johndoe@apache.org->from", gather=3D"to"), node as to_s), fl=3D"name", on=3D"to_s=3Demail") According to the docs it looks like you have the fields reversed on the fetch. If that doesn't work, I'll investigate further. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Jul 19, 2019 at 5:51 AM Ahmed Adel wrote: > Hi Joel, > > Thank you for your thoughts. I tried the fetch function, however, the > response does not contain "fl" fields of the "fetch" expression. For the > above example, the modified query is as follows: > > fetch(names, select(nodes(emails, > walk=3D"johndoe@apache.org->from", > gather=3D"to"), node as to_s), fl=3D"name", on=3D"email=3Dto_s") > > > where "names" is a collection that contains two fields representing pairs > of name and email: ("name", "email") > > The response returned is: > > { "result-set": { "docs": [ { "to_s": "johndoe@apache.org" > }, { "to_s": "johnsmith@apache.org" > }, > ... { "EOF": true, "RESPONSE_TIME": 33 } ] } } > > The response should have an additional "name" field in each document > returned. Any additional thoughts are appreciated. > > Best, > A. > > On Thu, Jul 18, 2019 at 6:12 PM Joel Bernstein wrote= : > > > Hi Ahmed, > > > > Take a look at the fetch > > > > > https://lucene.apache.org/solr/guide/8_0/stream-decorator-reference.html#= fetch > > > > It probably makes sense to allow more field to be returned from a nodes > > expression as well. > > > > Joel Bernstein > > http://joelsolr.blogspot.com/ > > > > > > On Wed, Jul 17, 2019 at 3:12 AM Ahmed Adel wrote: > > > > > Hi, > > > > > > Thank you for your reply. Could you give more details on the =E2=80= =9Ejoin=E2=80=9C > > > operation, such as what the sides of the join and the joining conditi= on > > > would be in this case? > > > > > > Best regards, > > > A. > > > > > > On Tue, Jul 16, 2019 at 2:02 PM markus kalkbrenner < > > > markus.kalkbrenner@biologis.com> wrote: > > > > > > > > > > > > > > > You have to perform a =E2=80=9Ejoin=E2=80=9C to get more fields. > > > > > > > > > Am 16.07.2019 um 13:52 schrieb Ahmed Adel : > > > > > > > > > > Hi, > > > > > > > > > > How can multiple fields be returned in graph traversal streaming > > > > expression > > > > > response documents? For example, the following query: > > > > > > > > > > nodes(emails, > > > > > walk=3D"johndoe@apache.org->from", > > > > > gather=3D"to") > > > > > > > > > > > > > > > returns these documents in the response: > > > > > > > > > > { > > > > > "result-set": { > > > > > "docs": [ > > > > > { > > > > > "node": "slist@campbell.com", > > > > > "collection": "emails", > > > > > "field": "to", > > > > > "level": 1 > > > > > }, > > > > > { > > > > > "node": "catherine.pernot@enron.com", > > > > > "collection": "emails", > > > > > "field": "to", > > > > > "level": 1 > > > > > }, > > > > > { > > > > > "node": "airam.arteaga@enron.com", > > > > > "collection": "emails", > > > > > "field": "to", > > > > > "level": 1 > > > > > }, > > > > > { > > > > > "EOF": true, > > > > > "RESPONSE_TIME": 44 > > > > > } > > > > > ] > > > > > } > > > > > } > > > > > > > > > > How can the query above be modified to return more document field= s, > > > > > "subject" for example? > > > > > > > > > > Best regards, > > > > > > > > > > A. > > > > > > > > > > --000000000000d103c9058e0a5bc4--