sphinx icon indicating copy to clipboard operation
sphinx copied to clipboard

search: increase priority for full (sub)title match when searching

Open marxin opened this issue 3 years ago • 0 comments

Describe the bug

When searching with an exact match of a (sub)title, the result should be shown at the very top. Example: https://www.sphinx-doc.org/en/master/search.html?q=More+topics+to+be+covered

As seen the result is shown as 3rd: Screenshot from 2022-07-21 17-26-35

It's defined in quickstart.rst as

More topics to be covered
-------------------------

How to Reproduce

Use the current docs.

Expected behavior

No response

Your project

Sphinx

Screenshots

No response

OS

All

Python version

any

Sphinx version

any

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

marxin avatar Jul 21 '22 15:07 marxin