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);
            }
        }
예제 #2
0
 public static ITypeMapping GetMappingFor <T>(this GetMappingResponse response) => response.GetMappingFor(typeof(T));