python / pythondotorg

Source code for python.org
https://www.python.org
Apache License 2.0
1.47k stars 587 forks source link

Python 3.12 docs website search results prioritizes "what's new" instead of actual topic #2452

Closed Saba-Sabato closed 1 month ago

Saba-Sabato commented 1 month ago

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

To Reproduce Steps to reproduce the behavior:

  1. Go to 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
  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):

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

Mariatta commented 1 month ago

I think this is an issue with Sphinx search feature and not Python issue.

Saba-Sabato commented 1 month ago

I think this is an issue with Sphinx search feature and not Python issue.

Ah, you're right! Was a bit tricky to find where to post this issue. Thanks! I think this can be closed.

Mariatta commented 1 month ago

Closing since it is not relevant.