DocsPress

Documentation plugin for WordPress

How search works

Updated
On this page

Readers search your docs from a dialog that opens over the page. Results from the product they are reading come first, and a match in a heading takes them straight to that part of the article.

  • Click the search field in the sidebar or on the docs home.
  • Press ⌘K on a Mac, or Ctrl+K on Windows and Linux.
  • Press / when the cursor is not in a text field.

Use the keyboard in the dialog

KeyDoes
↑ and ↓Move between results
EnterOpen the selected result
EscClose the dialog
⌘K or Ctrl+KClose the dialog

Tab stays inside the dialog while it is open.

Results

  • Results show while you type.
  • On a product page, the first group is In and the product name. Matches from other products follow, grouped by product.
  • Each group shows up to five articles.
  • When the words match a heading, the result shows the article title and the heading, and opens the article at that heading.

Search covers the title and text of published articles. Private articles show only to readers who can read them. Password protected articles show only to people who can edit them.

When nothing matches

The dialog says that no articles match, and lists the collections of the current product, or the products on the docs home, so the reader can browse instead.

Go to Docs > Settings > Single Document and select an option in Display Search:

  • Enable uses the DocsPress search described here. This is the default.
  • DocSearch by Algolia uses your own Algolia DocSearch index.
  • Disable hides search.

Was this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *