How I sort these jsons using java api?


(zouxcs) #1

"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.


(system) #2