Skip to content

docs(table-design): make Index Overview default-first#3941

Merged
dataroaring merged 3 commits into
apache:masterfrom
dataroaring:docs-index-default-first
Jun 18, 2026
Merged

docs(table-design): make Index Overview default-first#3941
dataroaring merged 3 commits into
apache:masterfrom
dataroaring:docs-index-default-first

Conversation

@dataroaring

Copy link
Copy Markdown
Contributor

What

Rewrite the top of Table Design > Indexes > Index Overview to be default-first:

  • Lead with what every table already has: an automatic prefix index on the sort key and a ZoneMap index on every column.
  • Add a decision table mapping query pattern → recommended index → "when needed" (Always / Often / Sometimes / Rarely), so a reader can tell which indexes are foundational versus situational.
  • Rename "Choosing an Index by Query Scenario" to "How Each Index Works", since selection now happens in the table up front and that section is the deeper explanation.

Why

The page previously opened with a prose "Quick Selection Guide" and then four scenario explanations, without stating that two useful indexes already exist by default. A reader could not quickly tell whether they need to add anything. Leading with "you already have prefix + ZoneMap; add a manual index only when a pattern is not covered" matches how an experienced user actually decides.

Scope

  • English only.
  • Applies to both current docs (docs/) and versioned_docs/version-4.x.
  • No new files, no sidebar changes; the page id is unchanged.
  • The in-page anchor reference in "Index Design Principles" was updated to point at the new "Start Here" section.

Lead with what every table already has (an automatic prefix index on the sort
key and a ZoneMap index on every column), then a decision table for when to add
a manual index, with a 'when needed' frequency column. Rename the per-scenario
section to 'How Each Index Works' since selection now happens up front.

Applies to both current docs and version-4.x.
Mirror the English default-first restructure: lead with the automatic prefix
and ZoneMap indexes plus a decision table, rename the per-scenario section.
Current docs and version-4.x.
@dataroaring

Copy link
Copy Markdown
Contributor Author

Update: added the 中文 counterparts, so this PR is now bilingual (EN + zh-CN), covering both current and version-4.x. The "English only" note in the description is superseded.

Plainer, more active wording in the Start Here section and the design-principles
pointer. Meaning unchanged.
@dataroaring dataroaring merged commit 3448853 into apache:master Jun 18, 2026
3 checks passed
dataroaring added a commit that referenced this pull request Jun 18, 2026
)

## What

A focused readability pass on the index mechanism descriptions in
**Index Overview > "How Each Index Works"** (Scenarios 1-2): the prefix
/ inverted / ZoneMap / BloomFilter / NGram explanations.

- Split long run-on sentences into short declarative ones.
- Active voice with Doris as the subject (e.g. "Doris builds an inverted
table…" instead of passive constructions).
- Remove the marketing word "more powerful" ("replaced by the more
powerful inverted index" → "replaced by the inverted index").

No technical meaning changed. Reference tables (comparison, operators)
and the capability lists in Scenarios 3-4 are left as-is, since terse
reference content is appropriate there.

## Scope

- Touches only the scenario prose. It does **not** change the "Start
Here" section, which is in PR #3941; the two PRs edit different regions
of the same file.
- EN + 中文; applies to both `docs/` and `versioned_docs/version-4.x`.

## Why

This content reads as dense, translated-from-source prose (60+ word
single sentences, marketing adjective). The rest of the page was made
task-first in #3941; this brings the explanation prose to the same
clarity bar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant