How to get the date when a document got to the index

If I put a document to the index, how can I understand when is the
last date this document has been put to the index.

By put I mean either the date the document was submitted to the index
or when it was indexed. Either will work for me.

On Fri, 2011-02-18 at 03:15 -0800, Ridvan Gyundogan wrote:

If I put a document to the index, how can I understand when is the
last date this document has been put to the index.

By put I mean either the date the document was submitted to the index
or when it was indexed. Either will work for me.

You will need to store a 'last_modified' field containing the current
date time as part of the doc.

clint