在搜索时,遇到了下面的Response:
查询中需要对某个字段做terms搜索,传入的候选条件过多。错误代码是:
将must替换为filte即可:
切换了新的服务器,在启动elasticsearch时,看到了下面的提示信息:
这个在文档里给了很详细的说明:
<a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html</a>
<a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html</a>
使用Java RestClient搜索时,出现了超时的问题:
在创建RestClient时,设置超过时长: