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 838B19EBE for ; Fri, 4 Nov 2011 07:41:00 +0000 (UTC) Received: (qmail 87016 invoked by uid 500); 4 Nov 2011 07:40:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 86650 invoked by uid 500); 4 Nov 2011 07:40:24 -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 86639 invoked by uid 99); 4 Nov 2011 07:40:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2011 07:40:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2011 07:40:14 +0000 Received: from VEGA (port-92-196-99-168.dynamic.qsc.de [92.196.99.168]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id 3449D14AA3A1 for ; Fri, 4 Nov 2011 07:39:52 +0000 (UTC) From: "Uwe Schindler" To: References: <000001cc9a48$e2310d10$a6932730$@thetaphi.de> <4EB30632.9040000@shopzilla.com> <004e01cc9ac3$afee9310$0fcbb930$@thetaphi.de> In-Reply-To: <004e01cc9ac3$afee9310$0fcbb930$@thetaphi.de> Subject: RE: Adding metadata to Lucene indexes? Date: Fri, 4 Nov 2011 08:39:57 +0100 Message-ID: <005201cc9ac4$f38ad010$daa07030$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 thread-index: AQEtdYK5En4lffs5LrMSLmGN8TPiXgCnrZGsAmYUFYQBRh5sJQHi0n27Ahyh7qUCwENq7JaCAdOw Content-Language: de Hi, Sorry, correction: If you call commit() without map, it should preserve = the previous map (according to the docs). You can read the Map without opening an IndexReader just by a static = method in IndexReader that simply reads the segments file. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Uwe Schindler [mailto:uwe@thetaphi.de] > Sent: Friday, November 04, 2011 8:31 AM > To: java-user@lucene.apache.org > Subject: RE: Adding metadata to Lucene indexes? >=20 > It must be passed to every commit. >=20 > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de >=20 > > -----Original Message----- > > From: Francisco A. Lozano [mailto:flozano@gmail.com] > > Sent: Friday, November 04, 2011 7:19 AM > > To: java-user@lucene.apache.org > > Subject: Re: Adding metadata to Lucene indexes? > > > > This metadata Map needs to be written on every commit, or if I just > > use plain > > commit() without the Map<> it keeps the old values? > > > > > > Francisco A. Lozano > > > > > > > > On Thu, Nov 3, 2011 at 22:22, Greg Bowyer = wrote: > > > I would look at the meta data for this, the magic document is > > > something that I did previously for exactly this problem, and two > > > weeks later we removed it as so much of the code started having to > > > check if the document was the magic document. > > > > > > The only thing with lucene metadata is that solr, currently, does > > > not expose this. > > > On 03/11/11 14:14, Jochen wrote: > > >> > > >> Thanks for the help. Following-up on that, how can I create > > >> document that is not indexed and returned by "normal" searches, = and > > >> retrieve it when I need access to my metadata? There seems to be = no > > >> reliable "document id" that I can use for this. > > >> > > >> Regards, > > >> Jochen > > >> > > >> On 2011-11-03 16:51:48 +0000, Uwe Schindler said: > > >> > > >>> There is also commit user data (a String-Map). When you commit = the > > >>> index writer you can attach that metadata. It's readable by = IndexReader. > > >>> > > >>> ----- > > >>> Uwe Schindler > > >>> H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de > > >>> eMail: uwe@thetaphi.de > > >>> > > >>>> -----Original Message----- > > >>>> From: Ian Lea [mailto:ian.lea@gmail.com] > > >>>> Sent: Thursday, November 03, 2011 4:05 PM > > >>>> To: java-user@lucene.apache.org > > >>>> Subject: Re: Adding metadata to Lucene indexes? > > >>>> > > >>>> You could add a dedicated document to the index storing = whatever > > >>>> you want. > > >>>> There is no requirement for lucene docs to bear any relation to > > >>>> each > > >>> > > >>> other. > > >>>> > > >>>> -- > > >>>> Ian. > > >>>> > > >>>> > > >>>> On Wed, Nov 2, 2011 at 10:09 AM, > > Jochen wrote: > > >>>>> > > >>>>> Hi, > > >>>>> > > >>>>> is it possible to add metadata to a Lucene index (not to the > > >>>>> indivudual Fields or Documents contained in the index). We = need > > >>>>> to periodically update an index by importing an XML document, > > >>>>> and are looking for a nice cozy place to store an import date > > >>>>> and a checksum that tells us if our input has changed. > > >>>>> > > >>>>> Regards, > > >>>>> Jochen > > >>>>> > > >>>>> > > >>>>> > > >>>>> = ---------------------------------------------------------------- > > >>>>> -- > > >>>>> --- 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 > > >> > > >> > > > > > > > > > = -------------------------------------------------------------------- > > > - 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 >=20 >=20 > --------------------------------------------------------------------- > 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