Table of Contents

Interface IRequestParameters

Namespace
Elasticsearch.Net
Assembly
Elasticsearch.Net.dll
public interface IRequestParameters

Properties

DefaultHttpMethod

HttpMethod DefaultHttpMethod { get; }

Property Value

HttpMethod

DeserializationOverride

A method that can be set on the request to take ownership of creating the response object. When set this will be called instead of the internal .Deserialize();

Func<IApiCallDetails, Stream, object> DeserializationOverride { get; set; }

Property Value

Func<IApiCallDetails, Stream, object>

QueryString

The querystring that should be appended to the path of the request

Dictionary<string, object> QueryString { get; set; }

Property Value

Dictionary<string, object>

RequestConfiguration

Configuration for this specific request, i.e disable sniffing, custom timeouts etcetera.

IRequestConfiguration RequestConfiguration { get; set; }

Property Value

IRequestConfiguration

Methods

ContainsQueryString(string)

bool ContainsQueryString(string name)

Parameters

name string

Returns

bool

GetQueryStringValue<TOut>(string)

Get's the value as its stored on the querystring using its original type

TOut GetQueryStringValue<TOut>(string name)

Parameters

name string

Returns

TOut

Type Parameters

TOut

GetResolvedQueryStringValue(string, IConnectionConfigurationValues)

Gets the stringified representation of a query string value as it would be sent to elasticsearch.

string GetResolvedQueryStringValue(string n, IConnectionConfigurationValues s)

Parameters

n string
s IConnectionConfigurationValues

Returns

string

SetQueryString(string, object)

Sets a query string param. If value is null and the parameter exists it will be removed

void SetQueryString(string name, object value)

Parameters

name string

The query string parameter to add

value object

The value to set, if null removes name from the query string if it exists