C# Class Foundatio.Repositories.Elasticsearch.ElasticReindexer

Show file Open project: exceptionless/Foundatio.Repositories

Public Methods

Method Description
ElasticReindexer ( IElasticClient client, ICacheClient cache = null, ILogger logger = null ) : System
ReindexAsync ( ReindexWorkItem workItem, Func progressCallbackAsync = null ) : System.Threading.Tasks.Task

Private Methods

Method Description
CalculateProgress ( long total, long completed, int startProgress, int endProgress = 100 ) : int
ConfigureIndexItem ( BulkDescriptor d, IHit hit, string targetIndex ) : void
ConfigureItem ( BulkIndexDescriptor idx, IHit hit, string targetIndex ) : BulkIndexDescriptor
ConfigureItem ( IndexDescriptor idx, IHit hit, string targetIndex ) : IndexDescriptor
GetIndexAliases ( string index ) : Task>
InternalReindexAsync ( ReindexWorkItem workItem, Func progressCallbackAsync, int startProgress, int endProgress = 100, System.DateTime startTime = null ) : Task

Method Details

ElasticReindexer() public method

public ElasticReindexer ( IElasticClient client, ICacheClient cache = null, ILogger logger = null ) : System
client IElasticClient
cache ICacheClient
logger ILogger
return System

ReindexAsync() public method

public ReindexAsync ( ReindexWorkItem workItem, Func progressCallbackAsync = null ) : System.Threading.Tasks.Task
workItem Foundatio.Repositories.Elasticsearch.Jobs.ReindexWorkItem
progressCallbackAsync Func
return System.Threading.Tasks.Task