Path: redb-route/redb.Route.Elasticsearch/ElasticsearchOperationType.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Elasticsearch/ElasticsearchOperationType.cs
----
namespace redb.Route.Elasticsearch;
///
/// Elasticsearch operation types — determines what the producer does.
/// Parsed from the first path segment of the URI: elasticsearch:OPERATION:index-name
/// or es:OPERATION:index-name.
/// When no operation is specified, the default is for producer.
///
public enum ElasticsearchOperationType
{
/// Index (upsert) a single document. Default producer operation.
Index,
/// Bulk API — batch index/update/delete operations.
Bulk,
/// Search API — returns hits (InOut pattern).
Search,
/// Get a single document by ID (InOut pattern).
Get,
/// Partial update a document by ID.
Update,
/// Delete a single document by ID.
Delete,
/// Count documents matching a query (InOut pattern).
Count,
/// Check if a document exists by ID (InOut pattern).
Exists,
/// Multi-search API — execute multiple search queries in a single request (InOut pattern).
MultiSearch,
}