在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。
中国机械工业集团(重庆地质仪器厂)

中国机械工业集团(重庆地质仪器厂)