results filtering query for search by input