agg_distinct_count, go back to ExAliyunOts.Search module for more information.
Calculate the distinct count of the assigned field by aggregation in the nested
:aggs option of
import MyApp.TableStore search "table", "index_name", search_query: [ query: ..., aggs: [ agg_distinct_count("agg_name", "score") ] ]
aggregation_name can be any business description string, when get the calculated results, we need to use
it to fetch them.
:missing, when the field is not existed in a row of data, if
:missingis not set, the row will be ignored in statistics; if
:missingis set, the row will use
:missingvalue to participate in the statistics of distinct count, by default it's