prepare filter for search results