add search to query