Skip to content

Add pipeline aggregations to NativeSearchQuery. #1255

Closed
@spring-projects-issues

Description

@spring-projects-issues

jjyyjjyy opened DATAES-682 and commented

 

"aggs": {
    "brand": {
      "terms": {
        "field": "brand"
      },
      "aggs": {
        "pv": {
          "value_count": {
            "field": "pid"
          }
        }
      }
    },
    "pvSum": {
      "sum_bucket": {
        "buckets_path": "brand>pv"
      }
    }
}

I can't find a way to implement this aggregation search, there is no addAggregation(PipelineAggregationBuilder) method in NativeSearchQueryBuilder

 


Affects: 3.2 GA (Moore)

Issue Links:

  • DATAES-957 Add PipelineAggregationBuilders to NativeSearchQuery
    ("is duplicated by")

1 votes, 2 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions