MDL-31989: Return search results as an array