Class Es
Fluent API for Elasticsearch endpoints.
// Consumer: poll for new documents
.From(Es.Index("my-index")
.Nodes("http://localhost:9200")
.Query("{\"term\":{\"status\":\"active\"}}")
.Sort("timestamp:desc")
.DeleteAfterRead()
.Delay(10_000))
// Producer: index a document
.To(Es.Index("my-index")
.Nodes("http://localhost:9200")
.Refresh("wait_for"))
// Producer: search
.To(Es.Index("my-index", ElasticsearchOperationType.Search)
.Nodes("http://localhost:9200"))
public static class Es
Inheritance
Methods
Index(string, ElasticsearchOperationType)
Creates an Elasticsearch endpoint builder with a specific producer operation.
public static ElasticsearchBuilder Index(string indexName, ElasticsearchOperationType operation)
Index(string)
Creates an Elasticsearch endpoint builder for the given index name.
public static ElasticsearchBuilder Index(string indexName)