为什么es中nested数据must_not不生效?
文章目录一、问题描述二、错误示例三、正确示例一、问题描述在使用ElasticSearch进行查询的时候,发现nested数据在使用must_not时不生效,可以查出所有数据。1.index中的mapping{ "product" : { "mappings" : { "properties" : { "attrs" : { "type" : "nested", "properties" : { "
原创
2022-04-26 18:52:06 ·
2463 阅读 ·
0 评论