Docvalues · Elastic Search Definitive Guide
Then, for the aggregation portion, we need to find all the unique terms in Doc_1 and Doc_2.Trying to do this with the inverted index would be a very expensive process: we would have to iterate over every term in the index and collect tokens from Doc_1 and Doc_2 columns. This would be slow and scale poorly: as the number of terms and …