<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Elasticsearch on 有趣的AI</title>
    <link>http://www.wfcoding.com/tags/elasticsearch/</link>
    <description>Recent content in Elasticsearch on 有趣的AI</description>
    <generator>Hugo -- 0.125.7</generator>
    <language>zh</language>
    <copyright>火云</copyright>
    <lastBuildDate>Wed, 01 Jan 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="http://www.wfcoding.com/tags/elasticsearch/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[Elasticsearch]使用search_after实现深度分页[附源码]</title>
      <link>http://www.wfcoding.com/articles/theory/p02/</link>
      <pubDate>Wed, 01 Jan 2025 00:00:00 +0000</pubDate>
      <guid>http://www.wfcoding.com/articles/theory/p02/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;elasticsearch&lt;/code&gt; 在使用 from + size 这种方式进行分页查询时，因为 &lt;code&gt;index.max_result_window&lt;/code&gt; 的默认值是 10K，所以当查询的文档超过第10K个文档时，会报错：Result window is too large&amp;hellip;&lt;br&gt;
当然，我们可以调整&lt;code&gt;index.max_result_window&lt;/code&gt;的大小，不过这种办法会导致查询效率降低和内存占用增加。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;本文讲述了在 &lt;code&gt;elasticsearch&lt;/code&gt; 中包含几十万乃至上百万的大数据量时，使用 &lt;code&gt;search_after&lt;/code&gt; 进行深度分页的方法。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
