Re: user index sigature

2007-09-27 Thread Karl Wettin
26 sep 2007 kl. 16.49 skrev John Wang: I have my own versioning system and I use it to keep index in sync with other parts of the system. Just wanted to know if there is a shortcut to keep it in the Lucene index and be able to read it by using something similar to getCurrentVersion. I guess

Re: user index sigature

2007-09-26 Thread John Wang
I have my own versioning system and I use it to keep index in sync with other parts of the system. Just wanted to know if there is a shortcut to keep it in the Lucene index and be able to read it by using something similar to getCurrentVersion. I guess I will have to store it somewhere outside of t

Re: user index sigature

2007-09-26 Thread Grant Ingersoll
Would IndexReader: /** * Reads version number from segments files. The version number is * initialized with a timestamp and then increased by one for each change of * the index. * * @param directory where the index resides. * @return version number. * @throws CorruptIndexEx

Re: user index sigature

2007-09-25 Thread Erick Erickson
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 . 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 progr

Re: user index sigature

2007-09-25 Thread John Wang
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, Er

Re: user index sigature

2007-09-25 Thread John Wang
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 t

Re: user index sigature

2007-09-25 Thread Erick Erickson
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 th

user index sigature

2007-09-25 Thread John Wang
Hi: Is there a way to added custom signature data to a lucene index, e.g data version etc? Thanks -John