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"} }]" ?
All that the multi-search can do is executing several search requests in a
single HTTP request. If you want to have merged results for both topics,
you either need to submit a single query that matches both topics (but
there is no guarantee that you will have 4 of them in the business topic
and 2 of them in the sport topic, the first thousand matches might just be
about business), or on client side.
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"} }]" ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.