-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[7.x] Add doc_count field mapper #64594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Bucket aggregations compute bucket doc_count values by incrementing the doc_count by 1 for every document collected in the bucket. When using summary fields (such as aggregate_metric_double) one field may represent more than one document. To provide this functionality we have implemented a new field mapper (named doc_count field mapper). This field is a positive integer representing the number of documents aggregated in a single summary field. Bucket aggregations will check if a field of type doc_count exists in a document and will take this value into consideration when computing doc counts.
|
heya, heads up that you will need to adapt the valueFetcher method to take a QueryShardContext instead MapperService as argument, following #64524 . Our streams have crossed in master and it caused an interesting situation where both our builds were green yet the code after the two merges would not compile :) |
|
@elasticmachine run elasticsearch-ci/bwc |
|
@elasticmachine run elasticsearch-ci/bwc |
After merging _doc_count PR in 7.x (elastic#64594), we can enable the skipped ML dataframe analytics. Those tests had been broken after merging elastic#64503 in master
Backports #64503 to 7.x