The executeSelect method currently always routes searches through the aggregation interface. This requires a call to get a list of IDs that satisfy the search criteria, and subsequently a call to retrieve the documents associated with those IDs. This is done to accommodate the potential for multiple SORT BY criteria.
In the scenario where a single sort field is furnished, a single search call may be made to retrieve all matching documents in a single call.
The
executeSelectmethod currently always routes searches through the aggregation interface. This requires a call to get a list of IDs that satisfy the search criteria, and subsequently a call to retrieve the documents associated with those IDs. This is done to accommodate the potential for multiple SORT BY criteria.In the scenario where a single sort field is furnished, a single
searchcall may be made to retrieve all matching documents in a single call.