PHPackages                             rystlee/laravel-scout-elasticsearch - 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. rystlee/laravel-scout-elasticsearch

ActiveLibrary

rystlee/laravel-scout-elasticsearch
===================================

ElasticSearch Driver For Laravel Scout

1.0.0(8y ago)116PHPPHP &gt;=5.6.4

Since Nov 30Pushed 8y agoCompare

[ Source](https://github.com/RystLee/laravel-scout-elasticsearch)[ Packagist](https://packagist.org/packages/rystlee/laravel-scout-elasticsearch)[ RSS](/packages/rystlee-laravel-scout-elasticsearch/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Scout Elasticsearch Driver
==================================

[](#laravel-scout-elasticsearch-driver)

This package is the [Elasticsearch](https://www.elastic.co/products/elasticsearch) driver for Laravel Scout.

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

[](#installation)

```
composer require rystlee/laravel-scout-elasticsearch
```

### Setting up Elasticsearch configuration

[](#setting-up-elasticsearch-configuration)

You must have a Elasticsearch server up and running with the index you want to use created

If you need help with this please refer to the [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)

After you've published the Laravel Scout package configuration:

```
// config/scout.php
// Set your driver to elasticsearch
    'driver' => env('SCOUT_DRIVER', 'elasticsearch'),

...
    'elasticsearch' => [
        'index' => env('ELASTICSEARCH_INDEX', 'laravel'),
        'hosts' => [
            env('ELASTICSEARCH_HOST', 'http://localhost'),
        ],
    ],
...
```

Highlight Usage
---------------

[](#highlight-usage)

1. Use `RystLee\LaravelScoutElastic\Traits\EsSearchable` in the model that needs highlight search results. Then the collection results will contains highlight attribute which has highlight hits relevant to the scout setting `toSearchableArray`.
2. Foreach the highlight's results in your view like the following example: ```
     @if(isset($post->highlight['body']))
         @foreach($post->highlight['body'] as $item)
         ......{!! $item !!}......
         @endforeach
     @else
         {{ mb_substr($post->content, 0, 150) }}......
     @endif

    ```

Usage
-----

[](#usage)

Now you can use Laravel Scout as described in the \[official documentation\](

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

3085d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7cfd4e1e71e0865e3d7193f8f7a678b842af4b3adacd7eaa87556e7fc5d2bd8?d=identicon)[Macken](/maintainers/Macken)

---

Top Contributors

[![iMacken](https://avatars.githubusercontent.com/u/7498625?v=4)](https://github.com/iMacken "iMacken (4 commits)")

### Embed Badge

![Health badge](/badges/rystlee-laravel-scout-elasticsearch/health.svg)

```
[![Health](https://phpackages.com/badges/rystlee-laravel-scout-elasticsearch/health.svg)](https://phpackages.com/packages/rystlee-laravel-scout-elasticsearch)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[orchid/platform

Platform for back-office applications, admin panel or CMS your Laravel app.

4.8k2.5M59](/packages/orchid-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[matchish/laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout

7431.6M2](/packages/matchish-laravel-scout-elasticsearch)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)

PHPackages © 2026

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