This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new bd6c9955fd0 [fix] fix image in behind-index.md (#3595)
bd6c9955fd0 is described below
commit bd6c9955fd09e9dccac4d2494ed0efdce6080106
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Tue Apr 28 10:37:11 2026 -0700
[fix] fix image in behind-index.md (#3595)
## Versions
- [x] dev
- [x] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)
## Languages
- [x] Chinese
- [x] English
- [ ] Japanese candidate translation needed
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
- [ ] Updated required version and language counterparts, or explained
why not
- [ ] If only one language changed, confirmed whether source/translation
counterparts need sync
---
.github/workflows/build-check.yml | 7 +++++++
docs-next/ai/vector-search/behind-index.md | 6 +++---
docs/ai/vector-search/behind-index.md | 6 +++---
.../current/ai/vector-search/behind-index.md | 6 +++---
.../current/ai/vector-search/behind-index.md | 6 +++---
.../version-4.x/ai/vector-search/behind-index.md | 6 +++---
static/images/vector-search/image-3.jpg | Bin 0 -> 178283 bytes
static/images/vector-search/image-3.png | Bin 134948 -> 0 bytes
static/images/vector-search/image-4.jpg | Bin 0 -> 128175 bytes
static/images/vector-search/image-4.png | Bin 88273 -> 0 bytes
.../version-4.x/ai/vector-search/behind-index.md | 6 +++---
11 files changed, 25 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/build-check.yml
b/.github/workflows/build-check.yml
index 6ca747eff17..0109332c140 100644
--- a/.github/workflows/build-check.yml
+++ b/.github/workflows/build-check.yml
@@ -130,6 +130,13 @@ jobs:
i18n/zh-CN/docusaurus-plugin-content-docs-releases/*)
LOCALES="en,zh-CN"
;;
+ # Static image assets are copied verbatim to the
+ # build output and don't affect page rendering, so
+ # they should NOT trigger a full rebuild on their
+ # own. Any doc change that references these images
+ # will trigger its own version-scoped build above.
+ static/images/*|static/images/**)
+ ;;
# Config, source code, or other structural changes
# require a full build to validate
sidebarsCommunity.json|sidebarsReleases.json|docusaurus.config.js|src/*|static/*|config/*|package.json|yarn.lock|tailwind.config.js)
diff --git a/docs-next/ai/vector-search/behind-index.md
b/docs-next/ai/vector-search/behind-index.md
index 944e72c0d94..86b9719558e 100644
--- a/docs-next/ai/vector-search/behind-index.md
+++ b/docs-next/ai/vector-search/behind-index.md
@@ -121,11 +121,11 @@ In the traditional path, Doris runs full optimization
(parsing, semantic analysi
Doris implements vector indexes as external (pluggable) indexes, which
simplifies management and supports asynchronous builds, but introduces
performance challenges such as avoiding redundant computation and IO. ANN
indexes can return distances in addition to row IDs. Doris leverages this by
short-circuiting distance expressions within the Scan operator via “virtual
columns,” and the Ann Index Only Scan fully eliminates distance-related read IO.
In the naive flow, Scan pushes predicates to the index, the index returns row
IDs, and Scan then reads data pages and computes expressions before returning N
rows upstream.
-
+
With Index Only Scan applied, the flow becomes:
-
+
For example, `SELECT l2_distance_approximate(embedding, [...]) AS dist FROM
tbl ORDER BY dist LIMIT 100;` executes without touching data files.
@@ -238,4 +238,4 @@ A typical Ann TopN query executes in two stages:
2. Global sort merges per-segment TopN to produce the final TopN.
If the projection returns many columns or large types (e.g., String), stage-1
reading N rows from each segment can incur heavy IO—and many rows are discarded
during stage-2 global sort. Doris minimizes stage-1 IO via global TopN delayed
materialization.
-For `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl
ORDER BY dist LIMIT 100;`: stage-1 outputs only 100 `dist` values and rowids
per segment via Ann Index Only Scan + virtual columns. With M segments, stage-2
globally sorts `100 * M` `dist` values to obtain the final TopN and rowids,
then the Materialize operator fetches the needed columns by rowid from
corresponding tablet/rowset/segment.
\ No newline at end of file
+For `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl
ORDER BY dist LIMIT 100;`: stage-1 outputs only 100 `dist` values and rowids
per segment via Ann Index Only Scan + virtual columns. With M segments, stage-2
globally sorts `100 * M` `dist` values to obtain the final TopN and rowids,
then the Materialize operator fetches the needed columns by rowid from
corresponding tablet/rowset/segment.
diff --git a/docs/ai/vector-search/behind-index.md
b/docs/ai/vector-search/behind-index.md
index 944e72c0d94..86b9719558e 100644
--- a/docs/ai/vector-search/behind-index.md
+++ b/docs/ai/vector-search/behind-index.md
@@ -121,11 +121,11 @@ In the traditional path, Doris runs full optimization
(parsing, semantic analysi
Doris implements vector indexes as external (pluggable) indexes, which
simplifies management and supports asynchronous builds, but introduces
performance challenges such as avoiding redundant computation and IO. ANN
indexes can return distances in addition to row IDs. Doris leverages this by
short-circuiting distance expressions within the Scan operator via “virtual
columns,” and the Ann Index Only Scan fully eliminates distance-related read IO.
In the naive flow, Scan pushes predicates to the index, the index returns row
IDs, and Scan then reads data pages and computes expressions before returning N
rows upstream.
-
+
With Index Only Scan applied, the flow becomes:
-
+
For example, `SELECT l2_distance_approximate(embedding, [...]) AS dist FROM
tbl ORDER BY dist LIMIT 100;` executes without touching data files.
@@ -238,4 +238,4 @@ A typical Ann TopN query executes in two stages:
2. Global sort merges per-segment TopN to produce the final TopN.
If the projection returns many columns or large types (e.g., String), stage-1
reading N rows from each segment can incur heavy IO—and many rows are discarded
during stage-2 global sort. Doris minimizes stage-1 IO via global TopN delayed
materialization.
-For `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl
ORDER BY dist LIMIT 100;`: stage-1 outputs only 100 `dist` values and rowids
per segment via Ann Index Only Scan + virtual columns. With M segments, stage-2
globally sorts `100 * M` `dist` values to obtain the final TopN and rowids,
then the Materialize operator fetches the needed columns by rowid from
corresponding tablet/rowset/segment.
\ No newline at end of file
+For `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl
ORDER BY dist LIMIT 100;`: stage-1 outputs only 100 `dist` values and rowids
per segment via Ann Index Only Scan + virtual columns. With M segments, stage-2
globally sorts `100 * M` `dist` values to obtain the final TopN and rowids,
then the Materialize operator fetches the needed columns by rowid from
corresponding tablet/rowset/segment.
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs-next/current/ai/vector-search/behind-index.md
b/i18n/zh-CN/docusaurus-plugin-content-docs-next/current/ai/vector-search/behind-index.md
index 4a4e34c06a3..186ae5c777f 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs-next/current/ai/vector-search/behind-index.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs-next/current/ai/vector-search/behind-index.md
@@ -122,11 +122,11 @@ FAISS_PRAGMA_IMPRECISE_FUNCTION_END
Apache Doris 的向量索引采用外挂方式。外挂索引便于管理与异步构建,但也带来性能挑战:如何避免重复计算与多余 IO。ANN
索引除返回命中行号外,还可返回向量间距离。为高效利用这些额外信息,执行引擎在 Scan 算子阶段对距离相关表达式进行“提前短路”。Doris
通过“虚拟列”机制自动完成该短路,并以 Ann Index Only Scan 完全消除与距离计算相关的读 IO。
在朴素流程中,Scan 将谓词下推至索引,索引返回行号;随后 Scan 按行号读取数据页(Data Page),再计算表达式并向上返回 N 行结果。
-
+
应用 Index Only Scan 后,流程变为:
-
+
例如 `SELECT l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER BY
dist LIMIT 100;`,执行过程将不再触发数据文件 IO。
@@ -249,4 +249,4 @@ Doris 针对 Ann TopN Search 重构了 Scan 并行策略。原策略按“行数
2. 全局排序节点对各 segment 的 TopN 进行合并排序,得到最终 TopN。
若 projection 返回多列或包含大列(如 String),阶段一从每个 segment 读取的 N 行可能造成大量磁盘
IO,且在阶段二的全局排序中被丢弃(非最终 TopN)。Doris 通过“全局 TopN 延迟物化”最大限度减少阶段一读取量。
-以 `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER
BY dist LIMIT 100;` 为例:阶段一每个 segment 通过 Ann Index Only Scan + 虚拟列仅输出 100 个
`dist` 及其 `rowid`;若共有 M 个 segment,阶段二对 `100 * M` 个 `dist` 做全局排序得到最终 TopN 及其
`rowid`,最后 Materialize 算子依据这些 `rowid` 在对应 tablet/rowset/segment 上物化所需列。
\ No newline at end of file
+以 `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER
BY dist LIMIT 100;` 为例:阶段一每个 segment 通过 Ann Index Only Scan + 虚拟列仅输出 100 个
`dist` 及其 `rowid`;若共有 M 个 segment,阶段二对 `100 * M` 个 `dist` 做全局排序得到最终 TopN 及其
`rowid`,最后 Materialize 算子依据这些 `rowid` 在对应 tablet/rowset/segment 上物化所需列。
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/behind-index.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/behind-index.md
index 4a4e34c06a3..186ae5c777f 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/behind-index.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/behind-index.md
@@ -122,11 +122,11 @@ FAISS_PRAGMA_IMPRECISE_FUNCTION_END
Apache Doris 的向量索引采用外挂方式。外挂索引便于管理与异步构建,但也带来性能挑战:如何避免重复计算与多余 IO。ANN
索引除返回命中行号外,还可返回向量间距离。为高效利用这些额外信息,执行引擎在 Scan 算子阶段对距离相关表达式进行“提前短路”。Doris
通过“虚拟列”机制自动完成该短路,并以 Ann Index Only Scan 完全消除与距离计算相关的读 IO。
在朴素流程中,Scan 将谓词下推至索引,索引返回行号;随后 Scan 按行号读取数据页(Data Page),再计算表达式并向上返回 N 行结果。
-
+
应用 Index Only Scan 后,流程变为:
-
+
例如 `SELECT l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER BY
dist LIMIT 100;`,执行过程将不再触发数据文件 IO。
@@ -249,4 +249,4 @@ Doris 针对 Ann TopN Search 重构了 Scan 并行策略。原策略按“行数
2. 全局排序节点对各 segment 的 TopN 进行合并排序,得到最终 TopN。
若 projection 返回多列或包含大列(如 String),阶段一从每个 segment 读取的 N 行可能造成大量磁盘
IO,且在阶段二的全局排序中被丢弃(非最终 TopN)。Doris 通过“全局 TopN 延迟物化”最大限度减少阶段一读取量。
-以 `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER
BY dist LIMIT 100;` 为例:阶段一每个 segment 通过 Ann Index Only Scan + 虚拟列仅输出 100 个
`dist` 及其 `rowid`;若共有 M 个 segment,阶段二对 `100 * M` 个 `dist` 做全局排序得到最终 TopN 及其
`rowid`,最后 Materialize 算子依据这些 `rowid` 在对应 tablet/rowset/segment 上物化所需列。
\ No newline at end of file
+以 `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER
BY dist LIMIT 100;` 为例:阶段一每个 segment 通过 Ann Index Only Scan + 虚拟列仅输出 100 个
`dist` 及其 `rowid`;若共有 M 个 segment,阶段二对 `100 * M` 个 `dist` 做全局排序得到最终 TopN 及其
`rowid`,最后 Materialize 算子依据这些 `rowid` 在对应 tablet/rowset/segment 上物化所需列。
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/behind-index.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/behind-index.md
index e6b4b0fc010..e1b1ff33017 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/behind-index.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/behind-index.md
@@ -122,11 +122,11 @@ FAISS_PRAGMA_IMPRECISE_FUNCTION_END
Apache Doris 的向量索引采用外挂方式。外挂索引便于管理与异步构建,但也带来性能挑战:如何避免重复计算与多余 IO。ANN
索引除返回命中行号外,还可返回向量间距离。为高效利用这些额外信息,执行引擎在 Scan 算子阶段对距离相关表达式进行“提前短路”。Doris
通过“虚拟列”机制自动完成该短路,并以 Ann Index Only Scan 完全消除与距离计算相关的读 IO。
在朴素流程中,Scan 将谓词下推至索引,索引返回行号;随后 Scan 按行号读取数据页(Data Page),再计算表达式并向上返回 N 行结果。
-
+
应用 Index Only Scan 后,流程变为:
-
+
例如 `SELECT l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER BY
dist LIMIT 100;`,执行过程将不再触发数据文件 IO。
@@ -249,4 +249,4 @@ Doris 针对 Ann TopN Search 重构了 Scan 并行策略。原策略按“行数
2. 全局排序节点对各 segment 的 TopN 进行合并排序,得到最终 TopN。
若 projection 返回多列或包含大列(如 String),阶段一从每个 segment 读取的 N 行可能造成大量磁盘
IO,且在阶段二的全局排序中被丢弃(非最终 TopN)。Doris 通过“全局 TopN 延迟物化”最大限度减少阶段一读取量。
-以 `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER
BY dist LIMIT 100;` 为例:阶段一每个 segment 通过 Ann Index Only Scan + 虚拟列仅输出 100 个
`dist` 及其 `rowid`;若共有 M 个 segment,阶段二对 `100 * M` 个 `dist` 做全局排序得到最终 TopN 及其
`rowid`,最后 Materialize 算子依据这些 `rowid` 在对应 tablet/rowset/segment 上物化所需列。
\ No newline at end of file
+以 `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl ORDER
BY dist LIMIT 100;` 为例:阶段一每个 segment 通过 Ann Index Only Scan + 虚拟列仅输出 100 个
`dist` 及其 `rowid`;若共有 M 个 segment,阶段二对 `100 * M` 个 `dist` 做全局排序得到最终 TopN 及其
`rowid`,最后 Materialize 算子依据这些 `rowid` 在对应 tablet/rowset/segment 上物化所需列。
diff --git a/static/images/vector-search/image-3.jpg
b/static/images/vector-search/image-3.jpg
new file mode 100644
index 00000000000..7c0db191f7f
Binary files /dev/null and b/static/images/vector-search/image-3.jpg differ
diff --git a/static/images/vector-search/image-3.png
b/static/images/vector-search/image-3.png
deleted file mode 100644
index 8920cef3cc2..00000000000
Binary files a/static/images/vector-search/image-3.png and /dev/null differ
diff --git a/static/images/vector-search/image-4.jpg
b/static/images/vector-search/image-4.jpg
new file mode 100644
index 00000000000..66e073d66bb
Binary files /dev/null and b/static/images/vector-search/image-4.jpg differ
diff --git a/static/images/vector-search/image-4.png
b/static/images/vector-search/image-4.png
deleted file mode 100644
index 10cdaca54a5..00000000000
Binary files a/static/images/vector-search/image-4.png and /dev/null differ
diff --git a/versioned_docs/version-4.x/ai/vector-search/behind-index.md
b/versioned_docs/version-4.x/ai/vector-search/behind-index.md
index 944e72c0d94..86b9719558e 100644
--- a/versioned_docs/version-4.x/ai/vector-search/behind-index.md
+++ b/versioned_docs/version-4.x/ai/vector-search/behind-index.md
@@ -121,11 +121,11 @@ In the traditional path, Doris runs full optimization
(parsing, semantic analysi
Doris implements vector indexes as external (pluggable) indexes, which
simplifies management and supports asynchronous builds, but introduces
performance challenges such as avoiding redundant computation and IO. ANN
indexes can return distances in addition to row IDs. Doris leverages this by
short-circuiting distance expressions within the Scan operator via “virtual
columns,” and the Ann Index Only Scan fully eliminates distance-related read IO.
In the naive flow, Scan pushes predicates to the index, the index returns row
IDs, and Scan then reads data pages and computes expressions before returning N
rows upstream.
-
+
With Index Only Scan applied, the flow becomes:
-
+
For example, `SELECT l2_distance_approximate(embedding, [...]) AS dist FROM
tbl ORDER BY dist LIMIT 100;` executes without touching data files.
@@ -238,4 +238,4 @@ A typical Ann TopN query executes in two stages:
2. Global sort merges per-segment TopN to produce the final TopN.
If the projection returns many columns or large types (e.g., String), stage-1
reading N rows from each segment can incur heavy IO—and many rows are discarded
during stage-2 global sort. Doris minimizes stage-1 IO via global TopN delayed
materialization.
-For `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl
ORDER BY dist LIMIT 100;`: stage-1 outputs only 100 `dist` values and rowids
per segment via Ann Index Only Scan + virtual columns. With M segments, stage-2
globally sorts `100 * M` `dist` values to obtain the final TopN and rowids,
then the Materialize operator fetches the needed columns by rowid from
corresponding tablet/rowset/segment.
\ No newline at end of file
+For `SELECT id, l2_distance_approximate(embedding, [...]) AS dist FROM tbl
ORDER BY dist LIMIT 100;`: stage-1 outputs only 100 `dist` values and rowids
per segment via Ann Index Only Scan + virtual columns. With M segments, stage-2
globally sorts `100 * M` `dist` values to obtain the final TopN and rowids,
then the Materialize operator fetches the needed columns by rowid from
corresponding tablet/rowset/segment.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]