search: Convert a search query into a repo dbquery
Created by: keegancsmith
For searcher we need an exact list of repositories to search, since it isn't efficient enough to just search all repositories. This function returns a repo list query given a search query. The dbquery will return all repositories which may contain a match according to the expression.