I've been using SearchScope.fetchObjects()
method till this time, and then it just occurred to me that fetchRows
might be the better choice in some cases (when you don't need metadata like class names, object stores etc). Something tells me it might be faster, but I didn't found any arguments about what method to use in which case, and why.
Here is SearchScope documentation.