namespace JiaZhiQuan.Common.ElasticSearch.Models { /* PUT / mall_goods { "mappings": { "properties": { "goodsId": { "type": "long" }, "goodsName": { "type": "text", "analyzer": "ik_max_word" }, "goodsDesc": { "type": "text", "analyzer": "ik_max_word" }, "parentCatId": { "type": "integer" }, "parentCatName": { "type": "text", "analyzer": "ik_smart" }, "catId": { "type": "integer" }, "catName": { "type": "text", "analyzer": "ik_smart" }, "chainCodes": { "type": "keyword" }, "specPath": { "type": "text", "analyzer": "ik_smart", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "specIds": { "type": "integer" }, "specNames": { "type": "text", "analyzer": "ik_smart", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "specValuesIds": { "type": "integer" }, "specValuesNames": { "type": "text", "analyzer": "ik_smart", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "specJson": { "type": "keyword" }, "goodsLevel": { "type": "integer" }, "sellerId": { "type": "long" }, "sellerName": { "type": "text", "analyzer": "ik_smart" }, "coverImg": { "type": "keyword", "index": false }, "coverWidth": { "type": "integer", "index": false }, "coverHeight": { "type": "integer", "index": false }, "hasVideo": { "type": "boolean", "index": false }, "videoId": { "type": "keyword", "index": false }, "videoReady": { "type": "boolean", "index": false }, "duration": { "type": "keyword", "index": false }, "originalPrice": { "type": "integer" }, "salePrice": { "type": "integer" }, "stock": { "type": "integer" }, "sourceType": { "type": "short", "index": false }, "disabled": { "type": "boolean" }, "disabledReason": { "type": "keyword", "index": false }, "auditState": { "type": "short", "index": false }, "onsaleState": { "type": "short" }, "offsaleReasonType": { "type": "short", "index": false }, "version": { "type": "integer", "index": false }, "createAt": { "type": "date", "format": "yyyy-MM-dd HH:mm:ss" }, "updateAt": { "type": "date", "format": "yyyy-MM-dd HH:mm:ss" }, "saleState": { "type": "short" }, "viewCnt": { "type": "integer", "index": false }, "collectCnt": { "type": "integer", "index": false }, "shareCnt": { "type": "integer", "index": false }, "province": { "type": "text", "analyzer": "ik_smart" }, "city": { "type": "text", "analyzer": "ik_smart" } } } } */ public class ESMallGoods { /// /// 商品id /// [ESId("_id")] public long goodsId { get; set; } /// /// 商品名称 /// public string goodsName { get; set; } /// /// 商品描述 /// public string goodsDesc { get; set; } /// /// 类目父类别编码,父类别为0,表示根节点 /// public int parentCatId { get; set; } /// /// 父级类目名称 /// public string parentCatName { get; set; } /// /// 类目id(最底层的类目) /// public int catId { get; set; } /// /// 类目名称 /// public string catName { get; set; } /// /// 链路code /// public string chainCodes { get; set; } /// /// 属性全链路 /// public string[] specPath { get; set; } /// /// 属性id,多个用,分割,前后都需加, /// public int[] specIds { get; set; } /// /// 属性名称 /// public string[] specNames { get; set; } /// /// 属性值id,多个用,分割,前后都需加, /// public int[] specValuesIds { get; set; } /// /// 属性值名称 /// public string[] specValuesNames { get; set; } /// /// 完整的属性信息 /// public string specJson { get; set; } /// /// 商品等级 /// public int? goodsLevel { get; set; } /// /// 卖家id /// public long sellerId { get; set; } /// /// 卖家名称 /// public string sellerAlias { get; set; } /// /// 主图 /// public string coverImg { get; set; } /// /// 主图宽 /// public int coverWidth { get; set; } /// /// 主图高 /// public int coverHeight { get; set; } /// /// 是否视频 /// public bool hasVideo { get; set; } /// /// 视频编号 /// public string videoId { get; set; } /// /// 视频是否可用,默认为false /// public bool videoReady { get; set; } /// /// 视频时长 /// public string duration { get; set; } /// /// 原价 /// public int originalPrice { get; set; } /// /// 销售价格 /// public int salePrice { get; set; } /// /// 库存 /// public int stock { get; set; } /// /// 商品来源(1,c2c商品) /// public short sourceType { get; set; } /// /// 是否禁用(1:禁用,0:启用) /// public bool disabled { get; set; } /// /// 禁用原因 /// public string disabledReason { get; set; } /// /// 审核状态(0:未通过1,通过) /// public short auditState { get; set; } /// /// 刊登状态(0,下架,1,上架) /// public short onsaleState { get; set; } /// /// 下架原因类型(1,主动下架,2,售出下架) /// public short offsaleReasonType { get; set; } /// /// 商品版本(默认0,每次编辑加1,-1 为存在草稿箱) /// public int version { get; set; } /// /// 创建时间-录入时间 /// public string createAt { get; set; } /// /// 修改时间 /// public string updateAt { get; set; } /// /// 销售状态(0:未售,1,已售) /// public short saleState { get; set; } /// /// 浏览数 /// public int viewCnt { get; set; } /// /// 收藏数 /// public int collectCnt { get; set; } /// /// 分享数 /// public int shareCnt { get; set; } /// /// 省份 /// public string province { get; set; } /// /// 城市 /// public string city { get; set; } } }