django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.89k stars 954 forks source link

Docs search: tweak results ranking so release notes have lower priority #1628

Open thibaudcolas opened 1 month ago

thibaudcolas commented 1 month ago

Related: Site-wide search #1499. We want to tweak documentation search results so searches like "TextChoices" favor reference documentation over release notes.

Tasks:

thibaudcolas commented 1 month ago

Assigning to @bmispelon to provide analytics on search from access logs / Postgres stats, for other contributors to review.

pauloxnet commented 1 month ago

As we saw with Jack it will help more to be able to extract the various sections titles from the HTML content of the Document and rate them separately.

Actually we already are using the toc key in the JSON generated by Sphinx , which contains the titles of all the paragraphs. In the web page you can see the list under "Contents" title.