I have a multi search like:

{"index" : "news"}
{"query":{ "bool":{ "must":[{ "more_like_this_field" : { "content" 
:{"like_text" : "James",  "min_term_freq":1, "max_query_terms" : 12}}  },  {   
"match":{"topic":"Business"}  }] }}, "from" : 0, "size" : 4}
{"index" : "news"}
{"query":{ "bool":{ "must":[{ "more_like_this_field" : { "content" 
:{"like_text" : "James",  "min_term_freq":1, "max_query_terms" : 12}}  },  {   
"match":{"topic":"Sport"}  }] }}, "from" : 0, "size" : 2}

but the result is an array, I expect I can merge them, and  sort them by 
date and _score, is there a best way to do this?
Can I sort them like in ES, adding " "sort" : [ { "date" : {"order" : 
"desc"} }]" ?

thanks
johnson
 

-- 
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/e402e2cd-3097-486b-a4f7-bc2864114f33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to