GET product/_search?size=1000 { "query": { "bool": { "filter": { "nested": { "path": "attrs", "query": { "bool": { "must": [ { "term": { "attrs.attrId": "14" } }, { "terms": { "attrs.attrValue": ["联发科", "麒麟"] } } ] } } } } } } }
GET product/_search?size=1000
{
"query": {
"bool": {
"filter": {
"nested": {
"path": "attrs",
"query": {
"bool": {
"must": [
{
"term": {
"attrs.attrId": "14"
}
},
{
"terms": {
"attrs.attrValue": ["联发科", "麒麟"]
}
}
]
}
}
}
}
}
}
}
GET product/_search?size=1000 { "query": { "bool": { "filter": { "nested": { "path": "attrs", "query": { "bool": { "must": [ { "term": { "attrs.attrId": "14" } }, { "terms": { "attrs.attrValue": ["联发科", "麒麟","A17"] } } ] } } } } } }, "sort": [ { "skuPrice": { "order": "desc" } } ] }
GET product/_search?size=1000
{
"query": {
"bool": {
"filter": {
"nested": {
"path": "attrs",
"query": {
"bool": {
"must": [
{
"term": {
"attrs.attrId": "14"
}
},
{
"terms": {
"attrs.attrValue": ["联发科", "麒麟","A17"]
}
}
]
}
}
}
}
}
},
"sort": [
{
"skuPrice": {
"order": "desc"
}
}
]
}
GET product/_search?size=1000 { "sort": [ { "skuPrice": { "order": "desc" } } ] } GET product/_mapping
GET product/_search?size=1000
{
"sort": [
{
"skuPrice": {
"order": "desc"
}
}
]
}GET product/_mapping