Search by

ghoststreet / craft-smart-search

ghoststreet

Smart Search: hybrid semantic and keyword search for Craft CMS, indexed in your own database using OpenAI embeddings.

Package info

github.com/ghoststreet/craft-smart-search

Type:craft-plugin

pkg:composer/ghoststreet/craft-smart-search

Statistics

Installs: 34

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 8

0.7.3 2026-09-10 20:45 UTC

This package is auto-updated.

Last update: 2026-09-22 20:33:57 UTC


README

AI-powered Smart Search and AI Answer for Craft CMS. Smart Search blends semantic (meaning-based) and keyword ranking, and can write a short AI Answer with sources when you want one.

Requirements

  • Craft CMS 5.0+
  • PHP 8.2+
  • MySQL, MariaDB or PostgreSQL (whichever Craft is already using)
  • OpenAI API key

There is no second database to provision, no connection settings, and no SQL to run by hand. The index lives in Craft's own database, alongside your content.

Smart Search has two search engines and picks one for you from what your database can do. The Standard engine runs everywhere. The pgvector engine runs on PostgreSQL when the vector extension is enabled, and is faster and a little sharper at ranking. pgvector is optional; it is a bonus if your host offers it, never a requirement. See Search Engines.

Install

composer require ghoststreet/craft-smart-search
./craft plugin/install smart-search

Then, in Craft → Smart Search → Settings → OpenAI, paste your API key, and index your content from Smart Search → Index. That is the whole setup.

Quick example

{% set results = craft.smartSearch.search('how do I reset my password') %}

{% for r in results %}
  <a href="{{ r.url }}">{{ r.title }}</a>
  <p>{{ r.excerpt }}</p>
{% endfor %}

Documentation

Full documentation lives in the Smart Search Wiki:

Support

Email dev@ghost.st for bugs or questions.

License

Licensed under the Craft License. A license is required for each Craft project running Smart Search in production.

Built by Ghost Street