瀏覽代碼

no message

xingzai 2 年之前
父節點
當前提交
d6b68d174d
共有 1 個文件被更改,包括 17 次插入1 次删除
  1. 17 1
      services/elastic.go

+ 17 - 1
services/elastic.go

@@ -60,12 +60,28 @@ func CreateIndexNameArticleHistory() {
         "type": "date",
         "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
       },
+     "PublishDate":{
+        "type": "date",
+        "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
+      },
      "PermissionName": {
        "type": "keyword"
      },
+   "RealName": {
+       "type": "keyword"
+     },
+   "SellerName": {
+       "type": "keyword"
+     },
      "StopTime": {
        "type": "short"
-     }
+     },
+	"CompanyArticleHistoryNum": {
+		   "type": "short"
+		 },
+	"UserArticleHistoryNum": {
+		   "type": "short"
+		 }
    }
  }
 }`