PHPackages                             ghoststreet/craft-smart-search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. ghoststreet/craft-smart-search

ActiveCraft-plugin[Search &amp; Filtering](/categories/search)

ghoststreet/craft-smart-search
==============================

Smart Search: hybrid and RAG search for Craft CMS using OpenAI embeddings and PostgreSQL pgvector.

0.6.0(1mo ago)014proprietaryPHP &gt;=8.2

Since Jun 3Compare

[ Source](https://github.com/ghoststreet/craft-smart-search)[ Packagist](https://packagist.org/packages/ghoststreet/craft-smart-search)[ RSS](/packages/ghoststreet-craft-smart-search/feed)WikiDiscussions Synced 1w ago

READMEChangelogDependencies (9)Versions (15)Used By (0)

Smart Search for Craft CMS
==========================

[](#smart-search-for-craft-cms)

**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
------------

[](#requirements)

- Craft CMS 4.0+ or 5.0+
- PHP 8.2+
- PostgreSQL 12+ with the [`pgvector`](https://github.com/pgvector/pgvector) extension (MySQL is not supported)
- OpenAI API key

Install
-------

[](#install)

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

Then, in Craft → **Smart Search → Settings → Connections**, add your OpenAI key and Postgres details.

> One-time database setup is required before the plugin can index anything. See [Installation](https://github.com/ghoststreet/craft-smart-search/wiki/Installation) in the wiki.

Quick example
-------------

[](#quick-example)

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

{% for r in results %}
  {{ r.title }}
  {{ r.excerpt }}
{% endfor %}
```

Documentation
-------------

[](#documentation)

Full documentation lives in the **[Smart Search Wiki](https://github.com/ghoststreet/craft-smart-search/wiki)**:

- [Getting Started](https://github.com/ghoststreet/craft-smart-search/wiki/Getting-Started)
- [Installation](https://github.com/ghoststreet/craft-smart-search/wiki/Installation) (including the one-time database setup)
- [Using Search in Templates](https://github.com/ghoststreet/craft-smart-search/wiki/Using-Search-in-Templates)
- [Using the API](https://github.com/ghoststreet/craft-smart-search/wiki/Using-the-API) (headless / external apps)
- [Tuning Search Results](https://github.com/ghoststreet/craft-smart-search/wiki/Tuning-Search-Results)
- [AI Answer Setup](https://github.com/ghoststreet/craft-smart-search/wiki/AI-Answer-Setup)
- [Costs and Limits](https://github.com/ghoststreet/craft-smart-search/wiki/Costs-and-Limits)
- [Security](https://github.com/ghoststreet/craft-smart-search/wiki/Security)
- [Troubleshooting](https://github.com/ghoststreet/craft-smart-search/wiki/Troubleshooting)
- [Settings Reference](https://github.com/ghoststreet/craft-smart-search/wiki/Settings-Reference)

Support
-------

[](#support)

Email **** for bugs or questions.

License
-------

[](#license)

Licensed under the [Craft License](https://craftcms.github.io/license/). A license is required for each Craft project running Smart Search in production.

---

Built by [Ghost Street](https://ghost.st)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance92

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~2 days

Total

6

Last Release

38d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d90f2b805c3affc5194297873342c71cb2c12927c1defd1dee505b0d599a048?d=identicon)[ghoststreet](/maintainers/ghoststreet)

### Embed Badge

![Health badge](/badges/ghoststreet-craft-smart-search/health.svg)

```
[![Health](https://phpackages.com/badges/ghoststreet-craft-smart-search/health.svg)](https://phpackages.com/packages/ghoststreet-craft-smart-search)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393818.3k12](/packages/spicyweb-craft-neo)[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k79](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k25](/packages/solspace-craft-freeform)[studioespresso/craft-scout

Craft Scout provides a simple solution for adding full-text search to your entries. Scout will automatically keep your search indexes in sync with your entries.

80145.6k](/packages/studioespresso-craft-scout)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
