Table of Contents

Class ElasticsearchResponse<TType>

Namespace
Si.Srp.Models.Search.Response
Assembly
Si.Srp.Models.Search.dll

Represents a response from Elasticsearch

public class ElasticsearchResponse<TType>

Type Parameters

TType

The type of the hit

Inheritance
ElasticsearchResponse<TType>
Inherited Members

Constructors

ElasticsearchResponse()

public ElasticsearchResponse()

Properties

Aggregations

The aggregations

public AggregateDictionary Aggregations { get; set; }

Property Value

AggregateDictionary

Documents

The documents

public IList<TType> Documents { get; }

Property Value

IList<TType>

Hits

The hit metadata

public IReadOnlyCollection<Hit<TType>> Hits { get; set; }

Property Value

IReadOnlyCollection<Hit<TType>>

ScrollId

The scroll id if applicable

public string ScrollId { get; set; }

Property Value

string

Total

The total results

public uint Total { get; set; }

Property Value

uint