use an initial query in search
Merge pull request #1255 from simod/issue-1254

use an initial query in search