Add parameter to search page to dump the query

This is useful for debugging why a query returns what it does.

Bug: 69442
Change-Id: Id7530e7be65eef59e85d01c44357f7d0ad879e4f