Try our conversational search powered by Generative AI!

Is it possible to get last index time from the index?

Vote:
 

I am trying to get the time the index was last uppdated to use as a cache-dependency key but I can't find that information anywhere.

Anyone knows if its possible to do that?

/Henrik

#77295
Nov 15, 2013 9:00
Vote:
 

For IContent stuff you can query for this using:

var timestamp = SearchClient.Instance.Search<IContent>()
.OrderByDescending(x => x.GetTimestamp())
.Take(1)
.Select(x => x.GetTimestamp())
.GetResult().First();

#77522
Nov 20, 2013 16:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.