/// <inheritdoc /> public IObservable <IBulkAllResponse> Reindex <TSource, TTarget>( IReindexRequest <TSource, TTarget> request, CancellationToken cancellationToken = default(CancellationToken) ) where TTarget : class where TSource : class { if (request.ScrollAll == null) { throw new ArgumentException( "ScrollAll property must be set in order to get the source of a Reindex operation"); } if (request.BulkAll == null) { throw new ArgumentException( "BulkAll property must set in order to get the target of a Reindex operation"); } return(new ReindexObservable <TSource, TTarget>(this, ConnectionSettings, request, cancellationToken)); }
/// <inheritdoc/> public IObservable <IReindexResponse <T> > Reindex <T>(IReindexRequest reindexRequest) where T : class => new ReindexObservable <T>(this, ConnectionSettings, reindexRequest);
public IObservable <BulkAllResponse> Reindex <TSource>(IReindexRequest <TSource> request, CancellationToken cancellationToken = new CancellationToken()) where TSource : class { throw new NotImplementedException(); }
public ReindexObservable(IElasticClient client, IConnectionSettingsValues connectionSettings, IReindexRequest <TSource, TSource> reindexRequest, CancellationToken cancellationToken ) : base(client, connectionSettings, reindexRequest, cancellationToken) { }
public ReindexObservable(IElasticClient client, IConnectionSettingsValues connectionSettings, IReindexRequest reindexRequest) { this._connectionSettings = connectionSettings; this._reindexRequest = reindexRequest; this._client = client; }
/// <inheritdoc /> public IObservable <BulkAllResponse> Reindex <TSource>( IReindexRequest <TSource> request, CancellationToken cancellationToken = default(CancellationToken) ) where TSource : class => Reindex <TSource, TSource>(request, cancellationToken);