Beispiel #1
0
        protected IFlushJobResponse FlushJob(IElasticClient client, string jobId, bool calculateInterim)
        {
            var flushJobResponse = client.FlushJob(jobId, f => f.CalculateInterim(calculateInterim));

            if (!flushJobResponse.IsValid || flushJobResponse.Flushed == false)
            {
                throw new Exception($"Problem flushing job {jobId} for integration test: {flushJobResponse.DebugInformation}");
            }
            return(flushJobResponse);
        }