Notes on Sphinx’s built-in search§
WIP
Disable search summary§
Maybe this? Didn’t work via Chrome DevTools Console.
DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY = false;
Speeding up index generation§
Install PyStemmer: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_search_language
Customize the search scorer§
Set this config flag: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_search_scorer
And then implement the custom scorer in a JS file.
OpenSearch?§
Not sure what this does: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_use_opensearch
Remove a page from search results§
Just add :nosearch: to top of page. https://www.sphinx-doc.org/en/master/usage/restructuredtext/field-lists.html
Thanks to Documatt for making me aware of that feature
References§
Backend (search index) implementation:
Frontend (search UI) implementation: