Filter search results to match used query and print total relevant docs of the used query