Class SearchResponseSections

  • All Implemented Interfaces:
    ToXContent, ToXContentFragment
    Direct Known Subclasses:
    InternalSearchResponse

    public class SearchResponseSections
    extends Object
    implements ToXContentFragment
    Base class that holds the various sections which a search response is composed of (hits, aggs, suggestions etc.) and allows to retrieve them. The reason why this class exists is that the high level REST client uses its own classes to parse aggregations into, which are not serializable. This is the common part that can be shared between core and client.