public void Accept(GetMappingResponse response)
        {
            if (response?.Indices == null)
            {
                return;
            }

            foreach (var indexMapping in response.Indices)
            {
                if (indexMapping.Value?.Mappings == null)
                {
                    continue;
                }

                Accept(indexMapping.Value.Mappings);
            }
        }
Beispiel #2
0
 public static ITypeMapping GetMappingFor <T>(this GetMappingResponse response) => response.GetMappingFor(typeof(T));