Bloodhound for Craft CMS

Bloodhound is a Craft 6 plugin. Craft 6 is still in beta, and so is Bloodhound (6.0.0-beta.1) — try it on staging first and use caution on production sites.

Craft 6 · Beta — use caution on production

Real search for Craft 6

Bloodhound puts Laravel Scout behind your Craft 6 content. Pick the sections and fields, and it keeps Meilisearch or Typesense in step as entries are saved, scheduled, expired and deleted — then hands your Twig or Blade templates real, live elements in rank order.

Bloodhound

One call, in Twig or Blade

Craft 6 renders both, so Bloodhound gives both the same API. Hits come back as real Craft elements, re-read through a live-only query — a stale document can never surface a disabled or expired entry.

twig
{# Twig #}
{% set results = bloodhound.search('articles', app('request').query('q'), {
    page: app('request').query('page', 1),
    where: { section: 'news' },
}) %}
{% for entry in results %}<a href="{{ entry.url }}">{{ entry.title }}</a>{% endfor %}

{{-- Blade --}}
@php($results = $bloodhound->search('articles', request('q')))
@foreach ($results as $entry) <a href="{{ $entry->url }}">{{ $entry->title }}</a> @endforeach

Features

Indexes defined in the control panel, kept honest by the plugin, searched from any template.

Indexes you define in the CP

Pick entries or assets, the sections or volumes, and the fields to copy in. Each index is kept per site, and rich text, relations and dates are flattened into searchable text for you.

Only live content, ever

Disabled, pending, expired and deleted elements leave the index, a scheduled job catches post and expiry dates passing, and every hit is re-read through a live-only query before it reaches a template.

Meilisearch and Typesense, set up for you

Searchable, filterable and sortable attributes for Meilisearch; per-index collection schemas and query_by for Typesense. Any other Laravel Scout engine works too.

  • Every engine searches the same fields, so results don't depend on the engine
  • Filter values are matched literally — visitor input can't widen a filter

Index health

See which documents are missing, orphaned or stale for every index and site. Repair re-syncs exactly those; Rebuild re-indexes on the queue. status --fail-on-drift plugs into CI and monitoring.

Outages don't break pages

If the engine is down, a search returns no results and a generic message, the details go to the log, and saving an entry still works.

Pro: Craft's own search, synonyms, zero downtime

Pro answers craft.entries.search(q) from your engine with no template changes, falling back to Craft wherever the index can't answer completely. It adds synonyms and stop words, and rebuilds into a fresh index before swapping it in.

Frequently Asked Questions

The questions worth answering before you install it.

Try it on staging today

Lite is free; Pro is $49. Bloodhound is a Craft 6 beta plugin on a beta CMS — start on a development or staging site and use caution on production.

More plugins

Pairs well with Bloodhound