Skip to content

Improve Quick Search ranking - #1818

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Oct 15, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused reorder matches the updated assertions and preserves filtering and within-group ordering.

0 open findings

What changed in this PR

Updates Quick Search’s “All” results to prioritize matches in the current document over global matches.

Changes:

  • Places headings and content before file and menu-action matches.
  • Updates test expectations for the new ranking.
File Description
MarkEditMac/​Modules/​Tests/​QuickSearchResultTests.swift Updates ranking assertions and test name.
MarkEditMac/​Modules/​Sources/​QuickSearchCore/​Results/​ContentSearchResult.swift Moves headings and content ahead of global results.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cyanzhong
cyanzhong merged commit b128eb3 into main Oct 15, 2026
1 check passed
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.

2 participants