Size docIdsToLaod appropriately in SearchService

Closes #4156