我有一个类型,我插入到我的弹性搜索数据库中
public class Capture
{
public Guid Id { get; set; }
...
[ElasticProperty(Type = FieldType.Nested)]
public IList<CustomerInformation> CustomerInformations { get; set; }
}
但是,当我做一个
var mapping=client.GetMapping<Capture>(o => o.Index("captures").Type("capture"));
customerinformations属性的映射仍然是对象而不是嵌套 . 为什么是这样?我甚至删除了索引并重新创建它,并没有解决任何问题 .