Skip to content

Searching for words that match Python keywords won't return anything #4167

Open
mkdocs-ng/mkdocs
#80

Description

@Avasam

This was first noticed here: astral-sh/ruff#21869

It seems keywords are excluded. Searching for while, if, for, from, etc., using the search bar will only result in words or blobs that contains the text, but not the text itself.

Any of those keywords give no results on MKDocs own website as well. https://www.mkdocs.org/

Image Image Image Image Image

Activity

  1. nightcityblade commented on Aug 9, 2026

    @nightcityblade

    Hi, I'd like to work on this. I've reproduced the missing exact-keyword results on current master and will submit a focused fix with regression coverage shortly.

  2. nightcityblade commented on Aug 17, 2026

    @nightcityblade

    After reviewing the three indexing paths and the stop-word/index-size tradeoff, I don't think this is safe to change without maintainer direction. I'm stepping back and unclaiming this issue so someone else can take it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions