Skip to content

[search] issues with the new HTML search algorithm  #12391

@picnixz

Description

@picnixz

I don't really have a good title for this issue, but the CPython issue speaks for itself. It appears we are still misranking titles in some cases (the 3.11 doc is generated by 7.2.6 but the 3.12 is generated by 7.3.7).

cc @wlach @jayaddison

From python/cpython#119423 (comment)

(I initially posted this in the pythondotorg repo - where I was directed here. Copying the description from there verbatim)

Describe the bug Searching for library modules on 3.12 returns first a list of "What's new in " pages instead of the searched for module.

To Reproduce Steps to reproduce the behavior:

1. Go to [docs.python.org/3.12/index.html](https://docs.python.org/3.12/index.html)

2. Click on search box in top right corner, enter e.g. "asyncio" and hit enter

3. [Scroll through results](https://docs.python.org/3.12/search.html?q=asyncio)

4. See that the first result is "History and License" followed by 10 (!) "What’s New In Python <version>" results. The 11th result is the actual asyncio module.

Expected behavior I would expect the asyncio module page to be the first result, or at the very least to appear very close to the top. This has been the case in previous versions of the website search.

Screenshots (the list goes on a few more entries below the screenshot) image

Compare with search from 3.11: image

Desktop (please complete the following information):

* OS: MacOS

* Browser Chrome

* Version 123

Additional context This happens for other topics too, not only modules.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions