springboot中es查询报错:“failed to create querv:Cannot search on field [ableLook] since it is not indexed“

 报错情况如下:

 

 原因:是因为es字段的 index 设置为 false 不可以通过这个字段进行搜索,比如:

 解决:把false 改为 true 或是直接把 "index": false 去掉,默认index为ture

猜你喜欢

转载自blog.csdn.net/QRLYLETITBE/article/details/128336991