eliminates duplicate terms and only returns the one with the highest relevance