Hi, I have 5 indexes with identical properties. How do I get 10 best results from each index when multi searching?
$search = [
'index' => 'table_*',
'body' => [
'size' => '10',
'query' => [
'match' => [
'name' => 'test search test'
]
],
],
];
I expect such a result:
[table_1] => [1,2,3,4,5,6,7,8,9,10]
[table_2] => [1,2,3,4,5,6,7,8,9,10]
[table_3] => [1,2,3,4,5,6,7,8,9,10]
[table_4] => [1,2,3,4,5,6,7,8,9,10]
[table_5] => [1,2,3,4,5,6,7,8,9,10]