Site search demo

This microsite tests static, per-microsite search for UNDRR microsites. The index is built with Pagefind after the Astro build and served next to the pages, so search needs no server, no API and no Elasticsearch.

Try these searches

  • drill finds a Drupal page syndicated from UNDRR
  • warning finds a Drupal page syndicated from PreventionWeb
  • fragment finds a page written in this repository
  • zanzibarquartz finds nothing: that word only appears on excluded content
  • simulacro searches the Spanish index

Why a static index

Microsites are built as static HTML and served by Drupal from the dist folder. Drupal's multi-domain search only knows about pages that are also Drupal nodes, and its results link to the Drupal URL rather than the microsite. A static index covers every page the microsite publishes, including pages written in this repository, and its results stay inside the microsite.

Tracked in undrr/web-backlog#3163.