Hacker News new | ask | show | jobs
by clircle 1503 days ago
Does python not have built in documentation search? In R I use `??searchterm`.
1 comments

It has help(), but I don't think there's a nice search feature included.

I mean you could use string methods to search for something of course, help just returns a string.

Then again, it's Python. There's probably some kind of

    import search from helpTools
Or something among those lines, because... it always has this kind of stuff
The `pydoc` / `python -m pydoc` module doesn't do search; it would be O(n) for every search like grep without e.g. a sphinx searchindex: https://docs.python.org/3/library/pydoc.html

Sphinx searchindex.js does Porter stemming for English and other languages: https://github.com/sphinx-doc/sphinx/blob/5.x/sphinx/search/...

sphinxcontrib.websupport.search supports Xapian, Whoosh (Python), and null: https://github.com/sphinx-doc/sphinxcontrib-websupport/blob/...

sphinx-elasticsearch https://github.com/zeitonline/sphinx_elasticsearch :

> This is a stand-alone extraction of the functionality used by readthedocs.org, compatible with elasticsearch-6.

MeiliSearch (rust) compared with ElasticSearch (java), Algolia, TypeSense (C++): https://docs.meilisearch.com/learn/what_is_meilisearch/compa...

Is there a good way to index each sphinx doc set's searchindex.js?