Compare commits

...

4 Commits

Author SHA1 Message Date
wakary
779c304742
Pre Merge pull request !16 from wakary/master 2024-08-21 03:16:04 +00:00
jiarongping
08249f572e fix: uni统计数据表索引调整 2024-08-21 11:15:56 +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
4 changed files with 25 additions and 4 deletions

View File

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

View File

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

View File

@ -169,11 +169,11 @@
} }
}, },
{ {
"IndexName":"hash", "IndexName":"error_hash",
"MgoKeySchema":{ "MgoKeySchema":{
"MgoIndexKeys":[ "MgoIndexKeys":[
{ {
"Name":"hash", "Name":"error_hash",
"Direction":"1" "Direction":"1"
} }
], ],

View File

@ -224,6 +224,18 @@
], ],
"MgoIsUnique":false "MgoIsUnique":false
} }
},
{
"IndexName":"previous_page_duration",
"MgoKeySchema":{
"MgoIndexKeys":[
{
"Name":"previous_page_duration",
"Direction":"1"
}
],
"MgoIsUnique":false
}
} }
] ]
} }