Pass query to alternative search. Closes #909