"sort" : [
       {
          "pt_float_props.value" : {
             "order" : "desc",
             "nested_filter" : {
                "term" : {  "pt_float_props.name": "consume_vol_tot" }
             }
          }
       },  {
          "pt_str_props.value" : {
             "order" : "desc",
             "nested_filter" : {
                "term" : {  "pt_str_props.name": "last_login_date" }
             }
          }
       }
    ]

I find java api that maybe i could use ScriptSortBuilder,but i'm not sure
about that.



--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/How-I-sort-these-jsons-using-java-api-tp4060705.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1406533143877-4060705.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to