Tibi Search

Tibi search combines frontend suggestion UIs, WordPress REST endpoints, and Algolia-backed query overrides. Treat global search and Help search as separate user journeys.

Last modified: July 9, 2026

link Search Areas

Area User-facing behavior Primary code
Global header search Lets users switch between library search and web search suggestions. packages/wordpress/themes/tibi/src/search.tsx
Help search autocomplete Searches tibi-help and tibi-faq while typing on Help surfaces. tibi/help-search
Help landing result page Converts Help landing ?s= requests into paginated Help-only search results. packages/wordpress/themes/tibi/inc/templating.php
Search query rules Restricts old global search post types and controls Algolia overrides. packages/wordpress/themes/tibi/inc/query.php, inc/algolia.php

The header search has two modes:

Mode Suggestions Submit target
Library Fetches /boker/search/suggestion?searchPhrase=... /boker/søk?query=...
Web Fetches /wp-json/wp/v2/search?search=... /?s=...

Readable result labels are normalized in search.tsx: post becomes Aktuelt, page becomes Side, brukerveiledninger and tibi-help become Brukerveiledning, and t2-faq/tibi-faq become Ofte stilte spørsmål.

Full block reference: Help search block.

Help autocomplete is exposed by tibi/help-search.

Piece Behavior
REST endpoint GET /wp-json/tibi/v1/help-search?q={term}&per_page={number}
Searched post types tibi-help, tibi-faq
Response items ID, title, URL, post type, readable type label.
Algolia flag The query sets use_algolia => true, so Algolia can power the result ordering when available.
Minimum frontend length Help autocomplete defaults to 2 characters.

The Help landing page has additional server-side behavior:

link Algolia Rules

Tibi customizes Algolia in packages/wordpress/themes/tibi/inc/algolia.php.

link Legacy Search Restrictions

When the new Help version is not enabled, global search is restricted to:

Dedicated Help searches are excluded from this restriction so tibi-help and tibi-faq continue to work.

link Editor Notes

link Operational Checks

After search changes: