Find distinct values for advanced search (tags)