public Nest.RootObjectMapping GetRootMapping()
        {
            PutMappingDescriptor <GenericJsonItem> putMappingRequest = new PutMappingDescriptor <GenericJsonItem>(ElasticClientWrapper.ConnectionSettings);

            putMappingRequest.MapFromAttributes();
            putMappingRequest.TimestampField(t => t.Enabled().Path("date"));
            putMappingRequest.Type(Type.Name);
            return(((IPutMappingRequest)putMappingRequest).Mapping);
        }
 public Nest.RootObjectMapping GetRootMapping()
 {
     PutMappingDescriptor<GenericJsonItem> putMappingRequest = new PutMappingDescriptor<GenericJsonItem>(ElasticClientWrapper.ConnectionSettings);
     putMappingRequest.MapFromAttributes();
     putMappingRequest.TimestampField(t => t.Enabled().Path("date"));
     putMappingRequest.Type(Type.Name);
     return ((IPutMappingRequest)putMappingRequest).Mapping;
 }
 protected override PutMappingDescriptor <TType> Mapping(PutMappingDescriptor <TType> descriptor)
 {
     return(descriptor.MapFromAttributes(_maxRecursion));
 }