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 o
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 creat
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
Mag, check this (in IndexReader):
/**
* Returns the time the index in the named directory was last modified.
* Do not use this to check whether the reader is still up-to-date, use
* [EMAIL PROTECTED] #isCurrent()} instead.
*/
public static long lastModified(String directory) throws