Full-text search in docs without paying for an index
Below roughly a thousand pages, a search index built at publish time and served with the site is fast, free and private. Above that, or when you need typo tolerance and ranking you can tune, a hosted index starts earning its money.
There are only two ways to do this
A hosted index
An index built at publish time
Why the built index usually wins for docs
Where the built index stops being the right answer
| Doc set | Index, roughly | Verdict |
|---|---|---|
| Under 100 pages | Tens of kilobytes | Trivial. Ships with the page. |
| 100 to 500 pages | A few hundred kilobytes | Fine. Fetched once, cached. |
| 500 to 1,000 pages | Approaching a megabyte | Still workable; worth watching. |
| Several thousand pages | Megabytes | A hosted index is the better tool. |
The other things you are buying
What good docs search does, regardless
What this looks like in Docszero
Questions
Do I need Algolia for documentation search?
How does search work on a static documentation site?
Does built-in search work on private docs?
Does search still work after I export the site?
How big does the search index get?
Try the free plan instead of reading about it
- Drag in a folder of Markdown, a zip, a Word document or a PDF
- Search, navigation and a 404 page are built for you
- Export the built site or the source on every plan, free included
Why your docs analytics doesn’t need a cookie banner
Cookie banners exist because analytics scripts store an identifier on the reader’s device. Count page views on the server with a hash that changes daily and there is nothing to store, nothing to consent to, and no banner.
Do you actually need a static site generator?
A static site generator is a good answer to a question a lot of teams have not asked yet. Here is what it actually buys you, what it costs to keep, and the three cases where the honest answer is that you do not need one.
Docszero vs ReadMe: free tiers, branding and the price of a second project
ReadMe’s free plan gives you one project, one version and a ReadMe badge you cannot remove. Removing it starts at $250 a month. Docszero removes the badge at $19.99 and gives you ten sites.