moved the code related to providing searchresults into it's own file

1 job for master in 0 seconds (queued for 16 seconds)
Status Job ID Name Coverage
  External
failed jenkins

00:02:22