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: u...@thetaphi.de > -----Original Message----- > From: Ian Lea [mailto:ian....@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 <jochen3...@gmail.com> 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-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org