Sort on multiple nested values

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" }
         }]
      }
   }
]}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.