Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public virtual void RecreateIndex()
 {
     _elasticSearchRepository.DeleteIndex();
     _elasticSearchRepository.EnsureIndexExists(ElasticHelpers.SetAnalysis);
 }