Table of Contents

Class IndexOperationsManagerExtensions

Namespace
Excalibur.Data.ElasticSearch.IndexManagement
Assembly
Excalibur.Data.ElasticSearch.dll

Extension methods for IIndexOperationsManager.

public static class IndexOperationsManagerExtensions
Inheritance
IndexOperationsManagerExtensions
Inherited Members

Methods

ForceMergeAsync(IIndexOperationsManager, string, int?, CancellationToken)

Forces a merge operation on the specified index.

public static Task<bool> ForceMergeAsync(this IIndexOperationsManager manager, string indexName, int? maxNumSegments, CancellationToken cancellationToken)

Parameters

manager IIndexOperationsManager
indexName string
maxNumSegments int?
cancellationToken CancellationToken

Returns

Task<bool>

OptimizeIndexAsync(IIndexOperationsManager, string, IndexOptimizationOptions, CancellationToken)

Optimizes index settings based on usage patterns.

public static Task<IndexOptimizationResult> OptimizeIndexAsync(this IIndexOperationsManager manager, string indexName, IndexOptimizationOptions optimizationOptions, CancellationToken cancellationToken)

Parameters

manager IIndexOperationsManager
indexName string
optimizationOptions IndexOptimizationOptions
cancellationToken CancellationToken

Returns

Task<IndexOptimizationResult>