Browse Source

no message

xingzai 2 years ago
parent
commit
d6b68d174d
1 changed files with 17 additions and 1 deletions
  1. 17 1
      services/elastic.go

+ 17 - 1
services/elastic.go

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