{ "took" : 2, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 14, "relation" : "eq" }, "max_score" : 0.036922477, "hits" : [ { "_index" : "product", "_type" : "_doc", "_id" : "3", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : true, "hotScore" : 0, "saleCount" : 0, "skuId" : 3, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 6999.0, "skuTitle" : "华为 Mate30 PRO 星河银 8GB+256GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "4", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : true, "hotScore" : 0, "saleCount" : 0, "skuId" : 4, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 5499.0, "skuTitle" : "华为 Mate30 PRO 星河银 6GB+128GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "5", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : true, "hotScore" : 0, "saleCount" : 0, "skuId" : 5, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 5999.0, "skuTitle" : "华为 Mate30 PRO 星河银 8GB+128GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "6", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : true, "hotScore" : 0, "saleCount" : 0, "skuId" : 6, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 6999.0, "skuTitle" : "华为 Mate30 PRO 亮黑色 8GB+256GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "7", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : true, "hotScore" : 0, "saleCount" : 0, "skuId" : 7, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 5499.0, "skuTitle" : "华为 Mate30 PRO 亮黑色 6GB+128GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "8", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : false, "hotScore" : 0, "saleCount" : 0, "skuId" : 8, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 5999.0, "skuTitle" : "华为 Mate30 PRO 亮黑色 8GB+128GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "9", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : false, "hotScore" : 0, "saleCount" : 0, "skuId" : 9, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 6999.0, "skuTitle" : "华为 Mate30 PRO 罗兰紫 8GB+256GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "10", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : false, "hotScore" : 0, "saleCount" : 0, "skuId" : 10, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 5499.0, "skuTitle" : "华为 Mate30 PRO 罗兰紫 6GB+128GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "11", "_score" : 0.036922477, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : false, "hotScore" : 0, "saleCount" : 0, "skuId" : 11, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 5999.0, "skuTitle" : "华为 Mate30 PRO 罗兰紫 8GB+128GB", "spuId" : 10 } }, { "_index" : "product", "_type" : "_doc", "_id" : "12", "_score" : 0.03485206, "_source" : { "attrs" : [ ], "brandId" : 1, "brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "brandName" : "华为", "catalogId" : 225, "catalogName" : "手机", "hasStock" : false, "hotScore" : 0, "saleCount" : 0, "skuId" : 12, "skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png", "skuPrice" : 6999.0, "skuTitle" : "华为 Mate30 PRO 翡冷翠 8GB+256GB", "spuId" : 10 } } ] } }
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 14,
"relation" : "eq"
},
"max_score" : 0.036922477,
"hits" : [
{
"_index" : "product",
"_type" : "_doc",
"_id" : "3",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : true,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 3,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 6999.0,
"skuTitle" : "华为 Mate30 PRO 星河银 8GB+256GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "4",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : true,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 4,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 5499.0,
"skuTitle" : "华为 Mate30 PRO 星河银 6GB+128GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "5",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : true,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 5,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 5999.0,
"skuTitle" : "华为 Mate30 PRO 星河银 8GB+128GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "6",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : true,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 6,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 6999.0,
"skuTitle" : "华为 Mate30 PRO 亮黑色 8GB+256GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "7",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : true,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 7,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 5499.0,
"skuTitle" : "华为 Mate30 PRO 亮黑色 6GB+128GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "8",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : false,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 8,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 5999.0,
"skuTitle" : "华为 Mate30 PRO 亮黑色 8GB+128GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "9",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : false,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 9,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 6999.0,
"skuTitle" : "华为 Mate30 PRO 罗兰紫 8GB+256GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "10",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : false,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 10,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 5499.0,
"skuTitle" : "华为 Mate30 PRO 罗兰紫 6GB+128GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "11",
"_score" : 0.036922477,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : false,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 11,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 5999.0,
"skuTitle" : "华为 Mate30 PRO 罗兰紫 8GB+128GB",
"spuId" : 10
}
},
{
"_index" : "product",
"_type" : "_doc",
"_id" : "12",
"_score" : 0.03485206,
"_source" : {
"attrs" : [ ],
"brandId" : 1,
"brandImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"brandName" : "华为",
"catalogId" : 225,
"catalogName" : "手机",
"hasStock" : false,
"hotScore" : 0,
"saleCount" : 0,
"skuId" : 12,
"skuImg" : "https://i-blog.csdnimg.cn/direct/d320a4af53644f28ae64586604f14c9f.png",
"skuPrice" : 6999.0,
"skuTitle" : "华为 Mate30 PRO 翡冷翠 8GB+256GB",
"spuId" : 10
}
}
]
}
}
GET product/_search { "query": { "bool": { "must": [ { "match": { "skuTitle": "华为" } } ], "filter": [ { "term": { "catalogId": "225" } }, { "terms": { "brandId": [ "1", "2", "3" ] } } ] } } }
GET product/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"skuTitle": "华为"
}
}
],
"filter": [
{
"term": {
"catalogId": "225"
}
},
{
"terms": {
"brandId": [
"1", "2", "3"
]
}
}
]
}
}
}
标签:商品信息,cn,direct,blog,-----,png,https,商城,d320a4af53644f28ae64586604f14c9f From: https://blog.csdn.net/2201_75960169/article/details/141370009GET product/_search { "query": { "bool": { "must": [ { "match": { "skuTitle": "华为" } } ], "filter": [ { "term": { "catalogId": "225" } }, { "terms": { "brandId": [ "1", "2", "3" ] } }, { "terms": { "attrValue": [ "海思" ] } } ] } } }
GET product/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"skuTitle": "华为"
}
}
],
"filter": [
{
"term": {
"catalogId": "225"
}
},
{
"terms": {
"brandId": [
"1", "2", "3"
]
}
},
{
"terms": {
"attrValue": [
"海思"
]
}
}
]
}
}
}