PHPackages                             pennebaker/craft-searchwithelastic - 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. pennebaker/craft-searchwithelastic

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

pennebaker/craft-searchwithelastic
==================================

Provides comprehensive search across all content types with real-time indexing, advanced querying, and production-level reliability.

5.2.1(2mo ago)05proprietaryPHP

Since Aug 18Pushed 2mo agoCompare

[ Source](https://github.com/Pennebaker/craft-searchwithelastic)[ Packagist](https://packagist.org/packages/pennebaker/craft-searchwithelastic)[ RSS](/packages/pennebaker-craft-searchwithelastic/feed)WikiDiscussions craft-5 Synced 1mo ago

READMEChangelogDependencies (4)Versions (13)Used By (0)

Search with Elastic
===================

[](#search-with-elastic)

An Elasticsearch integration for Craft CMS 5.x that provides comprehensive search capabilities for your content. This plugin indexes entries, assets, and commerce products while providing fast search results with advanced features like fuzzy matching, faceted filtering, and relevance scoring. Built for scalability, it handles real-time content updates and supports complex queries across large datasets.

Features
--------

[](#features)

### Core Features

[](#core-features)

- **Multi-Element Support**: Index entries, assets, categories, and Craft Commerce products
- **Real-Time Indexing**: Automatic indexing when content is created, updated, or deleted
- **Advanced Search**: Powerful search capabilities with highlighting and relevance scoring
- **Flexible Configuration**: Extensive configuration options for fine-tuned control
- **Frontend Content Fetching**: Automatically fetch and index rendered HTML content
- **Asset Text Extraction**: Extract searchable text from supported documents
- **Multi-Site Support**: Full support for Craft's multi-site architecture
- **CP Integration**: Control panel utilities and element sidebar status
- **Developer Friendly**: Rich API, events, and Twig variables for customization

Requirements
------------

[](#requirements)

- Craft CMS 5.x
- PHP 8.x
- Elasticsearch 7.x

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require pennebaker/craft-searchwithelastic
```

### Via Control Panel

[](#via-control-panel)

1. Go to **Plugins Store**
2. Search for "Search with Elastic"
3. Click **Install**

Quick Start
-----------

[](#quick-start)

### 1. Configure Elasticsearch Connection

[](#1-configure-elasticsearch-connection)

Create a config file at `config/search-with-elastic.php`:

```
