internal GetFieldMappingResponse(IApiCallDetails status, IndexFieldMappings dict)
 {
     this.Indices = dict ?? new IndexFieldMappings();
     //TODO can dict truely ever be null, whats the response look like when field mapping is not found.
     //does status.Success not already reflect this?
     //this.IsValid = status.Success && dict != null && dict.Count > 0;
 }
Beispiel #2
0
 internal GetFieldMappingResponse(IElasticsearchResponse status, IndexFieldMappings dict)
 {
     this.Indices = dict ?? new IndexFieldMappings();
     this.IsValid = status.Success && dict != null && dict.Count > 0;
 }