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; }