public async Task <IBulkResponse> AddOrUpdateMany <T>(IEnumerable <T> documents, bool ignoreIndex = false) where T : class { if (!ignoreIndex) { GetDb <T>(); } return(await _elasticClient.IndexManyAsync <T>(documents, IndexName.Rebuild(this.DefaultIndex, typeof(T)))); }