|
@@ -1,7 +1,8 @@
|
|
|
package util
|
|
|
|
|
|
var (
|
|
|
- /*文档名:docName 类型:string
|
|
|
+ /*_id 文档id
|
|
|
+ *文档名:docName 类型:string
|
|
|
*文档标签(多个,用逗号隔开):docTags 类型:string
|
|
|
*文档一级分类(多个,用逗号隔开):docClassLevelOne 类型:string
|
|
|
*文档二级分类(多个,用逗号隔开):docClassLevelTwo 类型:string
|
|
@@ -11,5 +12,5 @@ var (
|
|
|
*文档摘要:docSummary 类型:string
|
|
|
*上传时间:create_at 类型:date 格式:yyyy-MM-dd HH:mm:ss
|
|
|
*/
|
|
|
- EsMapping = []string{"docName", "docTags", "docClassLevelOne", "docClassLevelTwo", "price", "downTimes", "viewTimes", "docSummary", "create_at"}
|
|
|
+ EsMapping = []string{"id", "docName", "docTags", "docClassLevelOne", "docClassLevelTwo", "price", "downTimes", "viewTimes", "docSummary", "create_at"}
|
|
|
)
|