agg_avg, go back to ExAliyunOts.Search module for more information.
Calculate the average value of the assigned field by aggregation in the nested
:aggs option of
import MyApp.TableStore search "table", "index_name", search_query: [ query: ..., aggs: [ agg_avg("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 average value, by default it's