Skip to content

[BUG] Add _doc_count in root of transform documents #556

@petardz

Description

@petardz

What is the bug?
Currently, we index transform documents with transform._doc_count field. This results in aggregation queries returning incorrect doc_count for buckets.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Query with aggregation transform index and source index and notice difference in doc_count field in buckets

What is the expected behavior?
doc_count in buckets should be same when running aggregation on source_index and transform_index

Do you have any additional context?
We could solve this by adding _doc_count field in root of transform doc, instead of transform._doc_count

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions