Making filter for search