Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A5D6DCD4 for ; Fri, 26 Oct 2012 10:42:55 +0000 (UTC) Received: (qmail 7057 invoked by uid 500); 26 Oct 2012 10:42:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 6839 invoked by uid 500); 26 Oct 2012 10:42:52 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 6812 invoked by uid 99); 26 Oct 2012 10:42:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 10:42:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [77.238.189.195] (HELO nm13-vm0.bullet.mail.ird.yahoo.com) (77.238.189.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 10:42:43 +0000 Received: from [212.82.105.247] by nm13.bullet.mail.ird.yahoo.com with NNFMP; 26 Oct 2012 10:42:21 -0000 Received: from [212.82.108.245] by tm19.bullet.mail.ird.yahoo.com with NNFMP; 26 Oct 2012 10:42:20 -0000 Received: from [127.0.0.1] by omp1010.mail.ird.yahoo.com with NNFMP; 26 Oct 2012 10:42:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 964293.39770.bm@omp1010.mail.ird.yahoo.com Received: (qmail 49599 invoked by uid 60001); 26 Oct 2012 10:42:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1351248140; bh=pTyvXnHEPasKulRGPUA3k8OiDM8Px3uecgavD/i/hEY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Jfvlbnvwb5mUDHYb8O83anYrLqPJ+0e59lek4AC5bQczXVWtuEDzKe5AEkAWe7WZpG3s7EbntXDczAS6efzQJiMDm8Zu41v59XFgtQiQobVgAnT4dyXuvjVvYkkI6nRjoz9X/6th3f2TrES3AxJMo+b8gUAkL19CYcZsn/V/iiE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=cZfWWEQEnUbwS5jv/ggCgkc31r62IAgqqFRWq7tasYmM6NYdSZ8m1wP8jMzldJCFhNSgNziXq3brH6qnikh9NPAEeA4r7hYXVXDsy6Q92VhGVHPwER68S2cu//bfRoUnWu2r98eoXTvSaxUMRltpEvXRgXxGtEz9Jc+MIEVDQvc=; X-YMail-OSG: XfqV_BEVM1mNrEkdiFV8C4vo.ZlYpClMdXRDaSNNTf3IcCy L2BzVvt0BI2maZ.s3BFnvVS9q7k3neM.YiVAgP4x6IOm9rZJJy.niEWv3MGc My41L3xktmWlyHXzczhROHlHifXUdY02BPweDX1a5n1SFFFy_8f7ThPwkKkw WbDgT7DgCsU3C8ZrCTmb4YubYbRQ_XNpLS.kW_OJVZZFrB6udr83AelbbmYt MRUE68AKph1294Hq3OmjEzninrZYBZSjEpm62KvX4H8GH2zJY4Aoy5nzMMEI uSua7hSWjMBq4WHljWogUJjORk55530jrNwQiIwGl80fAp_VK_TFzJIcRuY8 xfKZYJBZ57jAVTQv6yl_9KIrAQ3zTXqWy4GBViRbQ_VFfF.baQpn35OjWRlz voveuzxjWfwBIqoEvbwO8YyJmwvEmDyF9FY11ky9YBJaNJPpY_RpSedE2 Received: from [193.62.194.244] by web29402.mail.ird.yahoo.com via HTTP; Fri, 26 Oct 2012 11:42:20 BST X-Rocket-MIMEInfo: 001.001,SGVsbG8gSmFjaywKCnlvdSBhcmUgcmlnaHQsIHRoZXJlIGlzIG5vIHJlYXNvbiB0aGF0IHRoaXPCoHBvc3NpYmlsaXR5wqBpcyBvbmx5IGluIFNvbHIsIHdoYXQgY291bGQgdXNlIGl0IGZyb20gdGhlIEx1Y2VuZS1BUEkuCkkganVzdCBnb3QgdGhlIG9sZCBzb3VyY2UgY29kZSBmcm9tIEphbiwgdGhlIGF1dGhvciBvZiB0aGUgb2xkIHBvc3QuCldoZW4gb3VyIGN1cnJlbnQgY2hhbmdlIGlzIHJlbGVhc2UgSSB3aWxsIGhhdmUgYSBsb29rIHRvIHRoZSBTb2xyIHNvbHV0aW9uIGFuZCBJIHdpbGwgdHJ5IHRvIGIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.450 References: <1351171597.74173.YahooMailNeo@web29404.mail.ird.yahoo.com> <141215F110434A21A6E43B80924C4B6C@JackKrupansky> <1351180752.27673.YahooMailNeo@web29405.mail.ird.yahoo.com> <87652EB0105140AD9CF8E048047D92BE@JackKrupansky> Message-ID: <1351248140.31634.YahooMailNeo@web29402.mail.ird.yahoo.com> Date: Fri, 26 Oct 2012 11:42:20 +0100 (BST) From: Willi Haase Reply-To: Willi Haase Subject: Re: How to use/create an alias to a field? To: "java-user@lucene.apache.org" In-Reply-To: <87652EB0105140AD9CF8E048047D92BE@JackKrupansky> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="921974003-278780656-1351248140=:31634" X-Virus-Checked: Checked by ClamAV on apache.org --921974003-278780656-1351248140=:31634 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello Jack,=0A=0Ayou are right, there is no reason that this=A0possibility= =A0is only in Solr, what could use it from the Lucene-API.=0AI just got the= old source code from Jan, the author of the old post.=0AWhen our current c= hange is release I will have a look to the Solr solution and I will try to = bring this in some way to the Lucene API as well.=0A=0AThank you=0A=A0 Will= i=0A=0A=0A________________________________=0A Von: Jack Krupansky =0AAn: java-user@lucene.apache.org; Willi Haase =0AGesendet: 17:43 Donnerstag, 25.Oktober 2012=0ABetreff: Re: = How to use/create an alias to a field?=0A =0AI almost added that you could = create a subclass of the Lucene query parser, as Solr does, and add the ali= asing that way. There might/should be field aliasing code in Solr that you = could easily apply in Solr. There really isn't a great reason why aliasing = is only available in Solr and not in Lucene.=0A=0ABut unless you are prepar= ed to hack on the query parser, alias support isn't available in Lucene rig= ht now.=0A=0A-- Jack Krupansky=0A-----Original Message----- From: Willi Haa= se=0ASent: Thursday, October 25, 2012 11:59 AM=0ATo: java-user@lucene.apach= e.org=0ASubject: Re: How to use/create an alias to a field?=0A=0AHi Jack=0A= =0AThank you for your help.=0AMy problem is, I have only a Lucene setup and= can not switch to Solr : (=0A=0ACheers=0AWilli=0A=0A=0A___________________= _____________=0AVon: Jack Krupansky =0AAn: java-us= er@lucene.apache.org=0AGesendet: 15:57 Donnerstag, 25.Oktober 2012=0ABetref= f: Re: How to use/create an alias to a field?=0A=0AWith edismax in Solr 3.6= /4.0 field aliases are supported:=0A=0A"The syntax for aliasing is f.myalia= s.qf=3Drealfield. A user query for myalias:foo will be queried as realfield= :foo."=0A=0ASee:=0Ahttp://wiki.apache.org/solr/ExtendedDisMax#Field_aliasin= g_.2BAC8_renaming=0A=0A-- Jack Krupansky=0A=0A-----Original Message----- Fr= om: Willi Haase=0ASent: Thursday, October 25, 2012 9:26 AM=0ATo: java-user@= lucene.apache.org=0ASubject: How to use/create an alias to a field?=0A=0AHe= llo=0A=0AI am using Lucene 3.4 and I have nearly the same question like Jan= in his post:=0Ahttp://mail-archives.apache.org/mod_mbox/lucene-java-user/2= 00801.mbox/%3C4791E482.60900%40gmx.de%3E=0A=0A=0AI could found something he= lpful in "Lucene in Action" or in the web.=0AWhat is the recommended way to= create an alias to a field?=0AI want be able to use in the searchquery "au= :some_name" or "auth:some_name" or "author:some_name", all using the field = "author".=0A=0AMany thanks in advance for any help or recommendations=0AWil= li : )=0A=0A---------------------------------------------------------------= ------=0ATo unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org=0A= For additional commands, e-mail: java-user-help@lucene.apache.org =0A=0A---= ------------------------------------------------------------------=0ATo uns= ubscribe, e-mail: java-user-unsubscribe@lucene.apache.org=0AFor additional = commands, e-mail: java-user-help@lucene.apache.org --921974003-278780656-1351248140=:31634--