Compare commits

...

4 Commits

Author SHA1 Message Date
wakary
5aa84d7b3f
Pre Merge pull request !16 from wakary/master 2024-09-03 03:49:17 +00:00
jiarongping
85c9e09636 fix: uni统计索引调整 2024-09-03 11:49:09 +08:00
wakary
9f8b0288ef update collection/opendb-news-comments/collection.json.
- 增加单独的评论图片;
2021-05-13 09:10:15 +08:00
wakary
f6512301ac update collection/opendb-mall-goods/collection.json.
商品描述大概格式:
- 富文本混排;
- 纯文字;
- 纯图片;
- 文字段+图片段;

goods_desc本身是能满足这几种要求,基于不同的使用需求,我们配置不同的goods_desc(自己知道如何提取出对应的数据)。

我们建议再傻瓜一点,通过增加goods_imgs来适配更多的使用情况。比如商品的描述全是图片的,可以直接使用使用goods_imgs,文字描述+图片的,可以使用goods_desc+goods_imgs。
2021-05-13 08:36:25 +08:00
3 changed files with 34 additions and 1 deletions

View File

@ -41,6 +41,10 @@
"title": "详细描述",
"trim":"both"
},
"goods_imgs": {
"bsonType": "array",
"description": "商品详情页的图片描述地址"
},
"goods_thumb": {
"bsonType": "string",
"description": "商品缩略图,用于在列表或搜索结果中预览显示",

View File

@ -31,6 +31,11 @@
"title": "评论内容",
"trim": "right"
},
"comment_imgs": {
"bsonType": "array",
"description": "评论图片",
"title": "评论图片"
},
"like_count": {
"bsonType": "int",
"description": "评论喜欢数、点赞数"

View File

@ -190,6 +190,30 @@
],
"MgoIsUnique":false
}
},
{
"IndexName":"entry_count",
"MgoKeySchema":{
"MgoIndexKeys":[
{
"Name":"entry_count",
"Direction":"1"
}
],
"MgoIsUnique":false
}
},
{
"IndexName":"visit_times",
"MgoKeySchema":{
"MgoIndexKeys":[
{
"Name":"visit_times",
"Direction":"1"
}
],
"MgoIsUnique":false
}
}
]
}
}