code: def select_distinct(distinct_field=None, **kwargs):
      
      results = search_associations(rows=0,
                                    select_fields=[],
                                    facet_field_limits = {
                                        distinct_field : -1
                                    },
                                    facet_fields=[distinct_field],
                                    **kwargs
      )
      # TODO: map field
      return list(results['facet_counts'][distinct_field].keys())
docs: select distinct values for a given field for a given a query