what do you think about the overhead of opening the IndexReader just to find out the version? e.g. if you have a large index, say 10M docs, just opening it to find out the version, how big is the overhead?
-John On 9/25/07, John Wang <[EMAIL PROTECTED]> wrote: > > cool, thanks! > > On 9/25/07, Erick Erickson <[EMAIL PROTECTED]> wrote: > > > > Sure, just index a *very special* document with one field that is > > shared by no other documents in your index. Put your > > custom signature in there. > > > > You can even get it very efficiently with TermEnum if you > > don't want to search for it, but searching would also be very > > fast. Put, say, two fields in the doc. "field_version" and "value". > > Always set the *field* field_version to the string "version". Now, > > search > > for field_version:version, get the one and only resulting doc > > and get it's value field. > > > > Best > > Erick > > > > On 9/25/07, John Wang <[EMAIL PROTECTED]> wrote: > > > > > > Hi: > > > > > > Is there a way to added custom signature data to a lucene index, > > e.gdata > > > version etc? > > > > > > Thanks > > > > > > -John > > > > > > >