Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Search: Multiple term matching sometimes breaks #11959

Closed
wlach opened this issue Feb 6, 2024 · 0 comments · Fixed by #11960
Closed

HTML Search: Multiple term matching sometimes breaks #11959

wlach opened this issue Feb 6, 2024 · 0 comments · Fixed by #11960

Comments

@wlach
Copy link
Contributor

wlach commented Feb 6, 2024

Describe the bug

Due to a small bug in term matching, multiple term matching on document content doesn't work when the same word appears in both the title and the document.

How to Reproduce

It's a bit fiddly to reproduce with a real example, since whether you encounter the bug depends on the order that search and title terms are processed. However it's quite easy to reproduce with a unit test, which I'll attach to the fix.

Environment Information

Sphinx main as of 2024-02-06: e976059

Sphinx extensions

No response

Additional context

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants