Commit c62c588b authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Add index field reindexedat

to see when the latest reindex was made
parent f15351ff
......@@ -346,6 +346,9 @@ func GetESLogFromDmdsec(
var firstLog string
var now time.Time
now = time.Now()
//var esLogList []ESLog
//esLogList = make([]ESLog, 0)
......@@ -558,6 +561,7 @@ func GetESLogFromDmdsec(
esLog.RightsInfo = ri
esLog.IsFirst = first
esLog.ReindexedAt = now.Format("2006-01-02 15:04:05")
esLogMap[div.ID] = esLog
......
......@@ -35,6 +35,7 @@ func (d ESLogSortSlice) Less(i, j int) bool {
// ESLog ...
type ESLog struct {
IsFirst bool
ReindexedAt string `json:"reindexedat,omitempty" bson:"reindexedat,omitempty"`
IsExternalContent bool
Bycreator string `json:"bycreator,omitempty" bson:"bycreator,omitempty"`
Byperson string `json:"byperson,omitempty" bson:"byperson,omitempty"`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment