This commit is contained in:
deepzz0
2016-10-04 21:43:56 +08:00
parent f3625ae63a
commit e3d722d270
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func ElasticsearchSimple(q string, size, from int) *ESSearchResult {
func ElasticIndex(artc *Article) error {
mapping := map[string]interface{}{
"title": artc.Title,
"content": artc.Content,
"content": IgnoreHtmlTag(artc.Content),
"slug": artc.Slug,
"tags": artc.Tags,
"create_time": artc.CreateTime,