Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 51239 invoked from network); 5 Jun 2009 04:32:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jun 2009 04:32:16 -0000 Received: (qmail 85020 invoked by uid 500); 5 Jun 2009 04:32:26 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 84920 invoked by uid 500); 5 Jun 2009 04:32:26 -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 84910 invoked by uid 99); 5 Jun 2009 04:32:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 04:32:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of noble.paul@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 04:32:16 +0000 Received: by an-out-0708.google.com with SMTP id b6so631179ana.5 for ; Thu, 04 Jun 2009 21:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=+ttI5vb+BPCsUYxP2RNd0ziK1G1oqLhwznkgUSeMlrU=; b=SFAwIEFg5F7gSYXBe10xsOGktzWLljewDTkUm+Uuke07pvzi7So5K3x0Sv/Fvml0p0 6nUw2jAlJJwEK9uEJSZA/LCZY2PqFE6+ReRAm6BB7uUga67mNdMW+OTiVyn9sp+vHT1C ktQ+Ru3WANiM94hhxi53AM3JsQiGxdwVuD3vk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=gAMTJNXD7XTMpobemYfENCWI77lWnkh88gNxbiU0SlEj+m2tLsMqLhjN4XNgBnFgBC at3hUHRBKkdpPuthyiSnbyyZine43h9q86+Gc9hMvnUholBXDwv+izVYWjExuv9Af30B eq5rLEbDEID905T+PsCHcceJ8lh7kNnjGDAx0= MIME-Version: 1.0 Sender: noble.paul@gmail.com Reply-To: noble.paul@gmail.com Received: by 10.231.36.8 with SMTP id r8mr830835ibd.8.1244176312126; Thu, 04 Jun 2009 21:31:52 -0700 (PDT) In-Reply-To: <0209616F20F8124A8B448B21C497DC23222DD43201@EGEXCMB02.oww.root.lcl> References: <0209616F20F8124A8B448B21C497DC23222DD42FAC@EGEXCMB02.oww.root.lcl> <871356.6050.qm@web50307.mail.re2.yahoo.com> <0209616F20F8124A8B448B21C497DC23222DD43201@EGEXCMB02.oww.root.lcl> From: =?UTF-8?B?Tm9ibGUgUGF1bCDgtKjgtYvgtKzgtL/gtLPgtY3igI0gIOCkqOCli+CkrOCljeCks+CljQ==?= Date: Fri, 5 Jun 2009 10:01:32 +0530 X-Google-Sender-Auth: 33cf2b16b8e66cfa Message-ID: <5e76b0ad0906042131i5d1eef75y545575d43bbf91f2@mail.gmail.com> Subject: Re: Customizing results To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org How are you accessing Solr? SolrJ? does this help? https://issues.apache.org/jira/browse/SOLR-1129 On Fri, Jun 5, 2009 at 3:00 AM, Manepalli, Kalyan wrote: > Otis, > =A0 =A0 =A0 =A0With that solution, the client has to accept all type loca= tion fields (location_de_de, location_it_it). I want to copy the result int= o "location" field, so that client can just accept location. > > Thanks, > Kalyan Manepalli > -----Original Message----- > From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] > Sent: Thursday, June 04, 2009 4:16 PM > To: solr-user@lucene.apache.org > Subject: Re: Customizing results > > > Hello, > > If you know what language the user specified (or is associated with), the= n you just have to ensure the "fl" URL parameter contain that field (and an= y other fields you want returned). =A0So if the language/locale is de_de, t= hen make sure the request has fl=3Dlocation_de_de,another_field,another_fie= ld, and not, for example location_it_it > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > ----- Original Message ---- >> From: "Manepalli, Kalyan" >> To: "solr-user@lucene.apache.org" >> Sent: Thursday, June 4, 2009 12:36:30 PM >> Subject: Customizing results >> >> Hi, >> =A0 =A0 =A0 =A0 =A0 =A0 I am trying to customize the response that I rec= eive from Solr. In >> the index I have multiple fields that contain the same data in different >> language. >> At the query time client specifies the language. Based on this param, I = want to >> return the value, copied into a different field. >> Eg: >> Lubang, Filippinerne >> Lubang, Philippinen >> Lubang, Philippines >> Lubang, Filipinas >> >> If the user specifies language as de_de, then I want to return the resul= t as >> Lubang, Philippinen >> >> What is the most optimal way of doing this? >> Any suggestions on this will be helpful >> >> Thanks, >> Kalyan Manepalli > > --=20 ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com