search: make doResults construct text search args
Created by: rvantonder
This breaks the dependency of aggregator.DoFilePathSearch
on search.TextParameters
by inline the logic (up the call stack).
Since the code is moved into doResults
, it finally becomes possible to merge mode
logic and constructing queries for optimized/global/non-global zoekt search. The duplicated inlining here intentional and desirable, because it allows me to convert separate jobs at a time (global vs non-global) and lift it into the static query planning.
Since Camden is out I'll need a bit more help with review from search core, and also CC Rok.