Table of Contents

Class ElasticSearchMaterializedViewExtensions

Namespace
Excalibur.Data.ElasticSearch.MaterializedViews
Assembly
Excalibur.Data.ElasticSearch.dll

Extension methods for registering Elasticsearch materialized view store.

public static class ElasticSearchMaterializedViewExtensions
Inheritance
ElasticSearchMaterializedViewExtensions
Inherited Members

Methods

UseElasticSearch(IMaterializedViewsBuilder, Action<ElasticSearchMaterializedViewStoreOptions>)

Configures the materialized view store to use Elasticsearch.

public static IMaterializedViewsBuilder UseElasticSearch(this IMaterializedViewsBuilder builder, Action<ElasticSearchMaterializedViewStoreOptions> configure)

Parameters

builder IMaterializedViewsBuilder

The materialized views builder.

configure Action<ElasticSearchMaterializedViewStoreOptions>

Action to configure Elasticsearch options.

Returns

IMaterializedViewsBuilder

The builder for fluent configuration.

Examples

services.AddMaterializedViews(builder =>
{
    builder.UseElasticSearch(options =>
    {
        options.NodeUri = "http://localhost:9200";
    });
});

UseElasticSearch(IMaterializedViewsBuilder, string)

Configures the materialized view store to use Elasticsearch with a node URI.

public static IMaterializedViewsBuilder UseElasticSearch(this IMaterializedViewsBuilder builder, string nodeUri)

Parameters

builder IMaterializedViewsBuilder

The materialized views builder.

nodeUri string

The Elasticsearch node URI.

Returns

IMaterializedViewsBuilder

The builder for fluent configuration.

Examples

services.AddMaterializedViews(builder =>
{
    builder.UseElasticSearch("http://localhost:9200");
});