Added base-query for json search.

This makes it easier to override the search, just as was done for the
folderlisting-view.