如:索引中有两个 styleCode(类似spu)跟 goodsCode(类似sku)区分商品;现在需要根据品牌信息为七匹狼的数据使用goodsCode就行统计。
POST xxx_goods_info/_search
{
"query": {
"bool": {
"must": [{
"term": {
"brand": {
"value": "七匹狼"
}
}
}
如:索引中有两个 styleCode(类似spu)跟 goodsCode(类似sku)区分商品;现在需要根据品牌信息为七匹狼的数据使用goodsCode就行统计。
POST xxx_goods_info/_search
{
"query": {
"bool": {
"must": [{
"term": {
"brand": {
"value": "七匹狼"
}
}
}