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 6B304200C56 for ; Fri, 14 Apr 2017 22:57:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 69B55160B8C; Fri, 14 Apr 2017 20:57:17 +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 AFB07160B8A for ; Fri, 14 Apr 2017 22:57:16 +0200 (CEST) Received: (qmail 58065 invoked by uid 500); 14 Apr 2017 20:57:14 -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 58053 invoked by uid 99); 14 Apr 2017 20:57:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Apr 2017 20:57:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3772B182398 for ; Fri, 14 Apr 2017 20:57:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.147 X-Spam-Level: X-Spam-Status: No, score=-0.147 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id klm8Fvl_SUVI for ; Fri, 14 Apr 2017 20:57:12 +0000 (UTC) Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4C7D65FC4C for ; Fri, 14 Apr 2017 20:57:12 +0000 (UTC) Received: by mail-wr0-f177.google.com with SMTP id c55so55860959wrc.3 for ; Fri, 14 Apr 2017 13:57:12 -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=/X2mUSAJS+4kDc5ObikBTQdXeZ+BTU5RZEtY13VsA+M=; b=qyMJ/lMPw18c9Uon53D0jOePXn7juqyo31DF1BiHRiOvkA1+LH+dQbPL+RGp5uuHDD PZ/JxpTZGmlrNpQbWu4OBDipFQhGfWc09I7h1gXpuYG3UGNq2m9XRF8YAcK4xi6ujQLG T/uK21XKEcDr2dGpZjpKzmweTOVIHxY2hSm6ImQ5LQmczrEXN1h2I1V3WXO1nG+XHG95 af19bYQRuHI2QWv3I7qa3kMQSaqa0gPSpjg6dgEVCH/uwrR0flJCz69GSISNgjTHqRNe MKRE1Hp6yHC4hktKU3kj+9XZFo1CvVUU5DHejWInkTd0riHjVdH9tmvRfl+pwFGj/YgX Av9g== 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=/X2mUSAJS+4kDc5ObikBTQdXeZ+BTU5RZEtY13VsA+M=; b=IM0Q5fydBPGFspriScd/yDzOKc3AMxZF+OL4wGv2uQJOrv2NAjrBlTDO++Gl2xa3Mf 9fer+E38uq55485zHBJeBZ2qbloXOreNiEybuDAvocGtIb9aJNTxZ4FZ9eTZV6tF2Se1 9WkFP2YT7y7KS7IkutncWHwy8xpVqMb43mML8kG4v3zE6YqNRVMx4NWqfTCH/oiV6j9q 1jx402ZgkTTKjOh7Os9G8vkfFFKAwMdtf+IfnKhssw6DIiGEMuV8o66vMfJDNBt+OXvo sPWM/NTxPYc1Z2OG0muTojUeSdKY+KYTPmIuiUbueJfGy93LEDTGrcT6JDmK1vzoZ/SU hweA== X-Gm-Message-State: AN3rC/4TdvBJlMTXYAbvTUpo0eG4htl6de+qIc+9nO814rumai4VCI85 JJjLFWJfDpQGuBL9gzPVy+KFpx5usw== X-Received: by 10.223.130.150 with SMTP id 22mr8992028wrc.89.1492203431934; Fri, 14 Apr 2017 13:57:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.171.226 with HTTP; Fri, 14 Apr 2017 13:57:11 -0700 (PDT) In-Reply-To: References: From: OTH Date: Sat, 15 Apr 2017 01:57:11 +0500 Message-ID: Subject: Re: Need help with auto-suggester To: solr-user@lucene.apache.org, marek@gn.apc.org Content-Type: multipart/alternative; boundary=001a114bf7207e4385054d26af77 archived-at: Fri, 14 Apr 2017 20:57:17 -0000 --001a114bf7207e4385054d26af77 Content-Type: text/plain; charset=UTF-8 Thanks, that works! But is it possible to have multiple payloadFields? On Sat, Apr 15, 2017 at 1:23 AM, Marek Tichy wrote: > Utilize the payload field. > > I don't need to search multiple fields; I need to search just one field > but > > get the corresponding values from another field as well. > > I.e. if a user is searching for cities, I wouldn't need the countries to > > also be searched. However, when the list of cities is displayed, I need > > their corresponding countries to also be displayed. > > This is obviously possible with the regular Solr index, but I can't > figure > > out how to do it with the Suggester index, which seems to only be able to > > have one field. > > Thanks > > > > On Fri, Apr 14, 2017 at 8:46 AM, Binoy Dalal > wrote: > > > >> You can create a copy field and copy to it from all the fields you want > to > >> retrieve the suggestions from and then use that field with the > suggester. > >> > >> On Thu 13 Apr, 2017, 23:21 OTH, wrote: > >> > >>> Hello, > >>> > >>> I've followed the steps here to set up auto-suggest: > >>> https://lucidworks.com/2015/03/04/solr-suggester/ > >>> > >>> So basically I configured the auto-suggester in solrconfig.xml, where I > >>> told it which field in my index needs to be used for auto-suggestion. > >>> > >>> The problem is: > >>> When the user searches in the text box in the front end, if they are > >>> searching for cities, I also need the countries to appear in the > >> drop-down > >>> list which the user sees. > >>> The field which is being searched is only 'city' here. However, I need > >> to > >>> retrieve the corresponding value in the 'country' field as well. > >>> > >>> How could I do this using the suggester? > >>> > >>> Thanks > >>> > >> -- > >> Regards, > >> Binoy Dalal > >> > > --001a114bf7207e4385054d26af77--