Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 39144 invoked from network); 30 Aug 2007 02:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 02:33:34 -0000 Received: (qmail 80962 invoked by uid 500); 30 Aug 2007 02:33:22 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 80702 invoked by uid 500); 30 Aug 2007 02:33:22 -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 80691 invoked by uid 99); 30 Aug 2007 02:33:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 19:33:21 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.172.130.4] (HELO ps02.vds2000.com) (72.172.130.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 02:33:13 +0000 Received: (qmail 3155 invoked from network); 29 Aug 2007 22:32:53 -0400 Received: from unknown (HELO aroushlt) (72.93.254.127) by aroush.net with SMTP; 29 Aug 2007 22:32:52 -0400 From: "George Aroush" To: Subject: RE: Can a Lucene field be renamed in a Lucene index? Date: Wed, 29 Aug 2007 22:33:28 -0400 Message-ID: <085101c7eaae$26582b30$0301a8c0@aroushlt> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcfqqweH45oyuegEQ0SdaTifDWxSaAAArPTQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 In-Reply-To: <1AB68811-2A68-4295-9548-268BE41D7D38@ehatchersolutions.com> X-Virus-Checked: Checked by ClamAV on apache.org Just read the thread. Unfortunately, it doesn't offer a solution. Is it possible to write a tool that will read the source index, and write it to an output index with the field renamed? No, the raw-text is not stored in the Lucene index. Thanks. -- George > -----Original Message----- > From: Erik Hatcher [mailto:erik@ehatchersolutions.com] > Sent: Wednesday, August 29, 2007 10:10 PM > To: java-user@lucene.apache.org > Subject: Re: Can a Lucene field be renamed in a Lucene index? > > there was just this thread here recently: > > tf4310043.html#a12269902> > > hope that helps. > > Erik > > > On Aug 29, 2007, at 10:03 PM, George Aroush wrote: > > > Hi everyone, > > > > I have the following need and I wander what are my options or if > > anyone run into it and has a solution / suggestion. > > > > I'm indexing a SQL database. Each table is a Lucene index. > Now, in > > table "A", I have a field called "Foo". When I index it > into Lucene, > > I also end up with a field called "Foo". Later on, the SQL > database > > administrator, will change the field name from "Foo" to > "Bar". Once > > this happens, any new records added to table "A" will be > indexed into > > Lucene as "Bar". > > > > The issue is this, Lucene index for table "A" now has > documents with > > some having a field called "Foo" and others with "Bar". This is > > problematic because now a user can't just search for "Foo:dog", but > > must search for "Foo:dog Bar:dog". > > > > So, what are my options here? No, I can't re-index. > Ideally, I would > > like to be able to say to Lucene, "rename the field 'Foo' > to 'Bar' in > > the index > > 'A'" (even if it means using private APIs). Is this possible? > > Have you run > > into this problem? What was your solution? > > > > Regards, > > > > -- George > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org