Skip to content

Document stop words in prefix and phrase searches - #3810

Open
PedroFlores199 wants to merge 1 commit into
meilisearch:mainfrom
PedroFlores199:docs/stop-word-query-behavior
Open

PedroFlores199 wants to merge 1 commit into
meilisearch:mainfrom
PedroFlores199:docs/stop-word-query-behavior

Conversation

@PedroFlores199

@PedroFlores199 PedroFlores199 commented Dec 4, 2026 •

Copy link
Copy Markdown

Description

Explain why a final stop word can still match as a prefix and how a trailing space completes it. Also clarify what happens when all query terms are skipped and how a stop word affects a quoted phrase.

Refs meilisearch/meilisearch#5851.

Verification

  • Ran Meilisearch 1.59.0 on a disposable local index with the configured as a stop word. Checked window the, window the followed by a space, a stop-word-only query, and quoted phrases against a fixture with theater window and window near bright door.
  • npm run check-broken-links found no broken internal links.

Checklist

  • AI disclosure: OpenAI Codex drafted the documentation and ran the local checks.
  • The title describes the changes.

Summary by CodeRabbit

  • Documentation
    • Clarified how stop words affect phrase searches, including skipped leading words, matching words between terms, and unfinished prefixes.
    • Explained that adding a trailing space completes the final word and that searches with all words skipped use a placeholder search.

Added explanations regarding stop words in phrase searches and their behavior in queries.
@mintlify

mintlify Bot commented Dec 4, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit e3c3a7f.

Approve preview

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The stop-word guide now describes phrase-search matching, unfinished stop-word prefixes when prefix search is enabled, and placeholder searches when all query words are skipped.

Changes: Stop-word search documentation

Layer / File(s) Summary
Phrase and prefix search behavior
capabilities/full_text_search/how_to/configure_stop_words.mdx
The guide describes how leading stop words can be skipped, how another word can match a stop-word position, and how an unfinished final stop word behaves with prefix search. It also notes that a trailing space marks the word complete and that a placeholder search runs if all query words are skipped.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: qdequele

Merge Risk: Minimal · up to e3c3a

This documentation update explains how stop words behave in prefix and phrase searches. It does not change runtime behavior, and no merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Document stop words in prefix and phrase searches" matches the changeset. The only file changed is the stop-word guide, which now documents phrase-search matching of stop words and prefix b…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Document stop words in prefix and phrase searches" matches the changeset. The only file changed is the stop-word guide, which now documents phrase-search matching of stop words and prefix behavior for a final stop word. The title names the main change (documentation of stop-word behavior in prefix and phrase searches) and stays specific enough for a reviewer scanning history.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd957028-b6ee-46b8-ad40-400666275ef1
Commits

Reviewing files that changed from the base of the PR and between 15ed86d and e3c3a7f.

Files selected for processing: 1

  • capabilities/full_text_search/how_to/configure_stop_words.mdx

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

This branch has not been deployed

No deployments
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