Re: getCurrentVersion question

2006-09-12 Thread Tom Emerson
As far as I know there isn't a way to do this. What we do is add a metadata document to each index that includes the creation date, the user name of the creating user, and various other tidbits. This gets updated on incremental updates to the index as well. Easily done and makes it easy to query.

Re: getCurrentVersion question

2006-09-12 Thread Mag Gam
Tom: great! Now do you do you add metadata? I am new to Lucene API + Java, but willing to learn. Got an example? TIA On 9/12/06, Tom Emerson [EMAIL PROTECTED] wrote: As far as I know there isn't a way to do this. What we do is add a metadata document to each index that includes the creation

Re: getCurrentVersion question

2006-09-12 Thread Erick Erickson
Just add another document (I do something similar). The key is to remember that documents in the same index do NOT have to have the same fields. So, say for your regular documents, you have fields (f1, f2, f3, f4). For your meta-data document, you index fields (md1, md2, md3...). The value for

getCurrentVersion question

2006-09-09 Thread Mag Gam
Hi All, I am trying to get the exact date when my index was created. I am assuming getCurrentVersion() is the right way of doing it. However, I am getting a result something like this: 1157817833085 According to the API reference, Reads version number from segments files. The version number is