Closed donhardman closed 10 months ago
The getDocumentByIds method throws an exception when the list of IDs passed to it is a filtered array, meaning it doesn't have an element at index 0. Here's the pseudo code to reproduce:
getDocumentByIds
$ids = [1 => 123]; $docs = $index->getDocumentByIds($ids);
We can use the array_values() function, but not sure that it's a proper solution.
array_values()
Potential fix to review: https://github.com/manticoresoftware/manticoresearch-php/pull/177
The
getDocumentByIds
method throws an exception when the list of IDs passed to it is a filtered array, meaning it doesn't have an element at index 0. Here's the pseudo code to reproduce:We can use the
array_values()
function, but not sure that it's a proper solution.