Table of Contents

Interface IRequestConfiguration

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

Properties

Accept

Force a different Accept header on the request

string Accept { get; set; }

Property Value

string

AllowedStatusCodes

Treat the following statuses (on top of the 200 range) NOT as error.

IEnumerable<int> AllowedStatusCodes { get; set; }

Property Value

IEnumerable<int>

BasicAuthenticationCredentials

Basic access authorization credentials to specify with this request. Overrides any credentials that are set at the global IConnectionSettings level.

BasicAuthenticationCredentials BasicAuthenticationCredentials { get; set; }

Property Value

BasicAuthenticationCredentials

ClientCertificates

Use the following client certificates to authenticate this single request

X509CertificateCollection ClientCertificates { get; set; }

Property Value

X509CertificateCollection

ContentType

Force a different Content-Type header on the request

string ContentType { get; set; }

Property Value

string

DisableDirectStreaming

Whether to buffer the request and response bytes for the call

bool? DisableDirectStreaming { get; set; }

Property Value

bool?

DisablePing

Under no circumstance do a ping before the actual call. If a node was previously dead a small ping with low connect timeout will be tried first in normal circumstances

bool? DisablePing { get; set; }

Property Value

bool?

DisableSniff

Forces no sniffing to occur on the request no matter what configuration is in place globally

bool? DisableSniff { get; set; }

Property Value

bool?

EnableHttpPipelining

Whether or not this request should be pipelined. http://en.wikipedia.org/wiki/HTTP_pipelining defaults to true

bool EnableHttpPipelining { get; set; }

Property Value

bool

ForceNode

This will force the operation on the specified node, this will bypass any configured connection pool and will no retry.

Uri ForceNode { get; set; }

Property Value

Uri

MaxRetries

This will override whatever is set on the connection configuration or whatever default the connectionpool has.

int? MaxRetries { get; set; }

Property Value

int?

PingTimeout

The ping timeout for this specific request

TimeSpan? PingTimeout { get; set; }

Property Value

TimeSpan?

RequestTimeout

The timeout for this specific request, takes precedence over the global timeout settings

TimeSpan? RequestTimeout { get; set; }

Property Value

TimeSpan?

RunAs

Submit the request on behalf in the context of a different shield user

https://www.elastic.co/guide/en/shield/current/submitting-requests-for-other-users.html
string RunAs { get; set; }

Property Value

string

ThrowExceptions

Instead of following a c/go like error checking on response.IsValid always throw an exception on the client when a call resulted in an exception on either the client or the Elasticsearch server.

Reasons for such exceptions could be search parser errors, index missing exceptions, etc...

bool ThrowExceptions { get; set; }

Property Value

bool