PHPackages                             madebybramble/craft-bramble-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. madebybramble/craft-bramble-search

ActiveCraft-plugin

madebybramble/craft-bramble-search
==================================

1.0.9(2mo ago)133↑650%1[1 issues](https://github.com/Made-By-Bramble/craft-bramble-search/issues)proprietaryPHPPHP &gt;=8.2CI passing

Since Oct 31Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Made-By-Bramble/craft-bramble-search)[ Packagist](https://packagist.org/packages/madebybramble/craft-bramble-search)[ RSS](/packages/madebybramble-craft-bramble-search/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

🔍 Bramble Search
================

[](#-bramble-search)

A powerful search engine plugin for Craft CMS that replaces the default search service with an enhanced inverted index implementation. Designed for performance, accuracy, and flexibility.

✨ Features
----------

[](#-features)

- 📊 **Inverted Index Architecture** - Fast, efficient search using modern indexing techniques
- 🔤 **Fuzzy Search** - Find results even with typos using n-gram similarity with adaptive thresholds
- 🧮 **BM25 Ranking Algorithm** - Industry-standard relevance scoring for better results
- 🔄 **Multiple Storage Backends** - Choose between Redis (fastest), File Storage, MySQL, MongoDB, or Craft cache
- 📝 **Stop Word Removal** - Filter out common words to improve search relevance
- 🔠 **Title Field Boosting** - Prioritize matches in title fields (5x boost factor)
- 📏 **Exact Phrase Matching** - Boost results that contain the exact search phrase (3x boost factor)
- 🎛️ **Craft Search Replacement** - Seamlessly replaces Craft's built-in search service
- 🌐 **Multi-site Support** - Each site has its own search index
- 🔄 **Automatic Indexing** - Content is automatically indexed when created, updated, or deleted
- 🧹 **Orphaned Term Cleanup** - Automatically removes terms with no associated documents
- 🛠️ **Console Commands** - Tools for viewing index statistics and rebuilding the index
- 🔍 **AND Logic for Multiple Terms** - Narrows results as more terms are added (unlike Craft's default OR logic)
- 🚫 **Revision Handling** - Properly skips drafts, revisions, and provisional drafts during indexing

📋 Requirements
--------------

[](#-requirements)

- 🔧 Craft CMS 5.5.0 or later
- 💻 PHP 8.2 or later
- 🔄 Redis 5.0+ (for Redis driver)
- 🗄️ MySQL 5.7.8+ or MariaDB 10.2.7+ (for MySQL driver)
- 🍃 MongoDB 4.4+ (for MongoDB driver)

📦 Installation
--------------

[](#-installation)

### Via Plugin Store

[](#via-plugin-store)

1. 🛒 Open your Craft Control Panel
2. 🔍 Navigate to **Plugin Store** → **Search** for "Bramble Search"
3. ⬇️ Click **Install**

### Via Composer

[](#via-composer)

```
# Navigate to your project directory
cd /path/to/your-project

# Install the plugin
composer require made-by-bramble/craft-bramble-search

# Install the plugin in Craft
./craft plugin/install bramble-search
```

🛠️ Configuration
----------------

[](#️-configuration)

Bramble Search can be configured via the Control Panel or a configuration file.

### Configuration File Setup

[](#configuration-file-setup)

Create a new file at `config/bramble-search.php` in your Craft project:

```
