Add a unique_values API to field index.