Search backend: simplify logBatch by not mutating SearchResultsResolver
Created by: camdencheek
Previously, we were mutating SearchResultsResolver by adding elapsed to
when we call logBatch
. This just modifies the call to add elapsed
before calling logBatch, which also has the benefit of simplifying
logBatch.
Test plan
Semantics-preserving.