Haven't got a clue. And I can't have a clue since the answer would be different if each doc had one field or 100 <G>. About the only thing I can think of is to try it and measure...
What is the use case where you'll be opening this index just to find its version? Could you just do that once at program startup and persist the version information for the duration of the program? Best Erick On 9/25/07, John Wang <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > > > > > > >