This commit is contained in:
deepzz0
2016-10-02 00:11:15 +08:00
parent ddf508825c
commit ead9533be3
34 changed files with 359 additions and 181 deletions

View File

@@ -145,7 +145,7 @@ func ElasticIndex(artc *Article) error {
"content": artc.Content,
"slug": artc.Slug,
"tags": artc.Tags,
"create_time": artc.CreateTime.Format("2006-01-02"),
"create_time": artc.CreateTime,
}
b, _ := json.Marshal(mapping)
return IndexOrUpdateDocument(INDEX, TYPE, artc.ID, b)