search: factor out evaluation for and/or queries
Created by: rvantonder
Stacked on #9297.
This PR converts the search Results
resolver to evaluate and
/or
queries on a separate branch. The evaluate
function is a placeholder until I fill this in, in subsequent PR(s).