今天遇到一个elastic查询bug。想要返回大量数据,结果报错:Result window is too large, from size must be...

意思就是超出了最大查询长度限制。

解决方法:

PUT方式请求:product/_settings?preserve_existing=true  ,product是文档名(数据表)

如果是所有索引均需要设置,将product换成*

截图如下:

设置es的最大查询长度

相关文章:

  • 2021-07-14
  • 2022-12-23
  • 2021-12-29
  • 2022-02-13
  • 2021-11-12
  • 2022-12-23
  • 2021-10-23
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-12-12
  • 2022-12-23
  • 2021-07-22
相关资源
相似解决方案