public bool RecreateIndex(out string error) { _elasticSearchRepository.DeleteIndex(); if (!_elasticSearchRepository.EnsureIndexExists(ElasticHelpers.SetAnalysis, out error)) { return(false); } foreach (var mapper in _mappers) { if (!mapper.CreateMap(out error)) { return(false); } } return(true); }
public virtual void RecreateIndex() { _elasticSearchRepository.DeleteIndex(); _elasticSearchRepository.EnsureIndexExists(ElasticHelpers.SetAnalysis); }