Class ElasticsearchEndpointOptions

Assembly: redb.Route.Elasticsearch.dll

Endpoint options for Elasticsearch transport. All properties are auto-bound from URI query parameters.

URI format: elasticsearch://index-name?nodes=http://localhost:9200


Short alias: es://index-name?nodes=http://localhost:9200


For producer operations: es:Search:index-name?nodes=http://localhost:9200&query={"match_all":{}}

public class ElasticsearchEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→ElasticsearchEndpointOptions

Inherited Members

Properties

ApiKey

API key authentication (base64-encoded).

public string ApiKey { get; set; }

BulkSize

Max documents per bulk request. (default: 100)

public int BulkSize { get; set; }

CertificateFingerprint

SHA-256 certificate fingerprint for TLS verification.

public string CertificateFingerprint { get; set; }

ConnectionFactory

Named connection factory reference. If set, looks up an

[RegistryReference(typeof(ElasticsearchConnectionFactory))]
public string ConnectionFactory { get; set; }

DeadTimeout

Dead node backoff timeout in milliseconds. (default: 60000)

public int DeadTimeout { get; set; }

Delay

Polling delay between search cycles in milliseconds. (default: 5000)

public int Delay { get; set; }

DeleteAfterRead

Delete document after successful processing. (default: false)

public bool DeleteAfterRead { get; set; }

DocumentId

Dynamic document ID expression. Supports ${header.redbEs.DocumentId} etc.

public DynamicValue<string>? DocumentId { get; set; }

EnableDebugMode

Enable debug mode — log raw requests/responses. (default: false)

public bool EnableDebugMode { get; set; }

InitialDelay

Initial delay before first poll in milliseconds. (default: 1000)

public int InitialDelay { get; set; }

MaxDeadTimeout

Max dead node backoff timeout in milliseconds. (default: 600000)

public int MaxDeadTimeout { get; set; }

MaxRetries

Maximum number of retries per request. (default: 3)

public int MaxRetries { get; set; }

Nodes

Comma-separated list of Elasticsearch node URIs.

public string Nodes { get; set; }

Operation

Producer operation type. Parsed from URI path prefix or query param.

public ElasticsearchOperationType Operation { get; set; }

Password

Basic auth password.

public string Password { get; set; }

PingTimeout

Ping timeout in milliseconds. (default: 2000)

public int PingTimeout { get; set; }

Pipeline

Ingest pipeline name to apply on index/bulk operations.

public string Pipeline { get; set; }

Query

JSON query DSL string. If empty, uses match_all.

public string Query { get; set; }

Refresh

Refresh policy: "true", "false", or "wait_for". (default: "false")

public string Refresh { get; set; }

RequestTimeout

Request timeout in milliseconds. (default: 30000)

public int RequestTimeout { get; set; }

Routing

Custom routing value.

public string Routing { get; set; }

ScrollTimeout

Scroll timeout for Scroll API (e.g. "1m", "5m"). If empty, uses search_after pagination.

public string ScrollTimeout { get; set; }

Size

Number of hits per search page. (default: 100, max 10000)

public int Size { get; set; }

Sort

Sort field(s) for ordering. Format: timestamp:desc,_id:asc.

public string Sort { get; set; }

SourceExcludes

Comma-separated list of fields to exclude from _source.

public string SourceExcludes { get; set; }

SourceIncludes

Comma-separated list of fields to include in _source.

public string SourceIncludes { get; set; }

TrackTotalHits

Track total hit count. (default: true)

public bool TrackTotalHits { get; set; }

Username

Basic auth username.

public string Username { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()