Skip to content

Multiple aggregations are not parsed correctly in ISearchResponse object #1169

@tagg7

Description

@tagg7

I encountered an error while performing a query of the following form:-

var response = client.Search(s => s
.Query(...)
.Aggregations(a => a
   .TopHits(...)
   .Terms(...)

In the response, only a single aggregation is parsed and available in ISearchResponse.Aggregations (always TopHits). I can see from the raw response that the Terms query was also returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions