Class OpenSearchMaterializedViewExtensions
- Namespace
- Excalibur.Data.OpenSearch.MaterializedViews
- Assembly
- Excalibur.Data.OpenSearch.dll
Extension methods for registering OpenSearch materialized view store.
public static class OpenSearchMaterializedViewExtensions
- Inheritance
-
OpenSearchMaterializedViewExtensions
- Inherited Members
Methods
UseOpenSearch(IMaterializedViewsBuilder, Action<OpenSearchMaterializedViewStoreOptions>)
Configures the materialized view store to use OpenSearch.
public static IMaterializedViewsBuilder UseOpenSearch(this IMaterializedViewsBuilder builder, Action<OpenSearchMaterializedViewStoreOptions> configure)
Parameters
builderIMaterializedViewsBuilderThe materialized views builder.
configureAction<OpenSearchMaterializedViewStoreOptions>Action to configure OpenSearch options.
Returns
- IMaterializedViewsBuilder
The builder for fluent configuration.
Examples
services.AddMaterializedViews(builder =>
{
builder.UseOpenSearch(options =>
{
options.NodeUri = "http://localhost:9200";
});
});
UseOpenSearch(IMaterializedViewsBuilder, string)
Configures the materialized view store to use OpenSearch with a node URI.
public static IMaterializedViewsBuilder UseOpenSearch(this IMaterializedViewsBuilder builder, string nodeUri)
Parameters
builderIMaterializedViewsBuilderThe materialized views builder.
nodeUristringThe OpenSearch node URI.
Returns
- IMaterializedViewsBuilder
The builder for fluent configuration.
Examples
services.AddMaterializedViews(builder =>
{
builder.UseOpenSearch("http://localhost:9200");
});