# Last indexed date for a model?

**URL:** <https://www.ruby-forum.com/t/last-indexed-date-for-a-model/106724>\
**Category:** Ferret\
**Created:** [June 13, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/last-indexed-date-for-a-model/106724 "2007-06-13T16:53:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [June 13, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/last-indexed-date-for-a-model/106724/1 "2007-06-13T16:53:12Z")

</div>

Is it possible to retrieve the date of when a particular model was last  
indexed?  
I would like to display this date in the search results. Thanks.

---

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [June 14, 2007, 8:39am UTC](https://www.ruby-forum.com/t/last-indexed-date-for-a-model/106724/2 "2007-06-14T08:39:37Z")

</div>

On Wed, Jun 13, 2007 at 04:53:12PM +0200, jason wrote:

> Is it possible to retrieve the date of when a particular model was last  
> indexed?  
> I would like to display this date in the search results. Thanks.

Ferret doesn’t store such data unless you tell it to do so by creating a  
field holding the indexing date. With aaf you can easily create a method  
that returns the current time in a reasonable format and mention it’s  
name in the list of fields.

Jens

–  
Jens Krämer  
webit! Gesellschaft für neue Medien mbH  
Schnorrstraße 76 | 01069 Dresden  
Telefon +49 351 46766-0 | Telefax +49 351 46766-66  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa
