AssistCamp includes live search that only searches your docs. As a reader types into the search box, matching docs appear in a dropdown with their titles and short excerpts, and one click opens the doc. Docs whose titles match the search appear first.
Where the search box appears
- On your docs homepage.
- On every category page.
- At the top of every doc page.
You can add a search box anywhere else on your site with the Search Form block. See AssistCamp Blocks Reference.
How readers use it
- Type at least three characters.
- Matching docs appear in a dropdown below the box.
- Click a result, or use the arrow keys to move through results and press Enter to open one. Press Escape to close the dropdown.
Which docs search finds
- Only published docs. Drafts and private docs never appear.
- Docs whose title contains the search words come first, then other matches, with the most recently updated docs higher up.
- With several knowledgebases, search covers the current knowledgebase or all documentation, depending on how the search box is set up. Block themes set this in the Search Form block. Classic themes set it in the Customizer. See Styling Docs in a Classic Theme.
Your titles do most of the work
Search matches the words you wrote, so titles carry the most weight. Write them the way readers speak:
- “How to cancel your subscription”, not “Subscription lifecycle management”.
- “Fixing a failed payment”, not “Payment error states”.
If readers use a different word than your team does, use their word in the doc. A doc about “Refunds” that never mentions “money back” will not be found by someone searching for “money back”.
Search settings
In the Search Form block you can change the placeholder text, how many results appear, whether excerpts and categories show, the message shown when nothing matches, and the colors and sizes.
If search shows an error or no results
See Live Search Shows an Error or No Results.