Hi, how could I sort based on multiple values?
This works fine:
POST testindex/default/_search
{
"sort": [{
"product.rating" : {
"nested_path": "product",
"order" : "asc",
"nested_filter": [{
"term" : { "product.name": "hummer" }
}]
}
}
]}
But this only sort on "lobster":
POST testindex/default/_search
{
"sort": [{
"product.rating" : {
"nested_path": "product",
"order" : "asc",
"nested_filter": [{
"term" : { "product.name": "lobster" }
}]
}
},
{
"product.rating" : {
"nested_path": "product",
"order" : "asc",
"nested_filter": [{
"term" : { "product.name": "salmon" }
}]
}
}
]}