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

ActiveLibrary[Search &amp; Filtering](/categories/search)

sl0wik/laravel-scout-elasticsearch-driver
=========================================

Elasticsearch Driver for Laravel Scout with multi-index support.

3.0.11(7y ago)57.3k1MITPHPPHP &gt;=5.6.4

Since Sep 29Pushed 7y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (15)Used By (0)

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

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

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

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

Package is based on tamayo/laravel-scout-elastic, and created to replace [depeceated](https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html) types, with [Index per document type](https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html#_index_per_document_type) solution.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Migration](#migration)
- [Usage](#usage)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

```
composer require sl0wik/laravel-scout-elasticsearch-driver
```

Add the Scout service provider and the package service provider in your app.php config:

```
// config/app.php
'providers' => [
    ...
    Laravel\Scout\ScoutServiceProvider::class,
    ...
    ScoutEngines\Elasticsearch\ElasticsearchProvider::class,
],
```

### Setting up Elasticsearch configuration

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

After you've published the Laravel Scout package configuration update config/scout.php:

```
    'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
...
    'elasticsearch' => [
        'hosts' => [
            env('ELASTICSEARCH_HOST', 'http://localhost'),
        ],
    ],
...
```

Migration
---------

[](#migration)

If you are migrating from ErickTamayo/laravel-scout-elastic, keep in mind that instead of `config('scout.elasticsearch.index')` this package is using `searchableAs()` method to get index name. By default it will return model `config('scout.prefix').$this->getTable();`. Your new data will be stored under different indexes so you will need to reindex everything.

Usage
-----

[](#usage)

Now you can use Laravel Scout as described in the [official documentation](https://laravel.com/docs/5.4/scout)

Credits
-------

[](#credits)

- [Erick Tamayo](https://github.com/ericktamayo) and [Contributors](https://github.com/ErickTamayo/laravel-scout-elastic/contributors)
- [Michael Slowik](https://github.com/sl0wik)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~48 days

Recently: every ~67 days

Total

14

Last Release

2881d ago

Major Versions

1.0.1 → 2.0.02017-02-01

2.0.0 → 3.0.02017-02-01

2.0.1 → 3.0.82017-10-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef4a79c6f9a9afe04267a19b98fe0a5a45930c92d08fd720b233ab21ae102ca?d=identicon)[sl0wik](/maintainers/sl0wik)

---

Top Contributors

[![ErickTamayo](https://avatars.githubusercontent.com/u/4788817?v=4)](https://github.com/ErickTamayo "ErickTamayo (22 commits)")[![sl0wik](https://avatars.githubusercontent.com/u/2696038?v=4)](https://github.com/sl0wik "sl0wik (12 commits)")[![kronthto](https://avatars.githubusercontent.com/u/17156142?v=4)](https://github.com/kronthto "kronthto (4 commits)")[![bbashy](https://avatars.githubusercontent.com/u/1149200?v=4)](https://github.com/bbashy "bbashy (2 commits)")[![shibby](https://avatars.githubusercontent.com/u/291643?v=4)](https://github.com/shibby "shibby (2 commits)")[![xcaptain](https://avatars.githubusercontent.com/u/4054836?v=4)](https://github.com/xcaptain "xcaptain (2 commits)")[![prajapatinirav](https://avatars.githubusercontent.com/u/7949561?v=4)](https://github.com/prajapatinirav "prajapatinirav (1 commits)")[![pvanhemmen](https://avatars.githubusercontent.com/u/715022?v=4)](https://github.com/pvanhemmen "pvanhemmen (1 commits)")[![tillkruss](https://avatars.githubusercontent.com/u/665029?v=4)](https://github.com/tillkruss "tillkruss (1 commits)")[![BrianGreenhill](https://avatars.githubusercontent.com/u/1642339?v=4)](https://github.com/BrianGreenhill "BrianGreenhill (1 commits)")[![fridzema](https://avatars.githubusercontent.com/u/8180660?v=4)](https://github.com/fridzema "fridzema (1 commits)")[![clsource](https://avatars.githubusercontent.com/u/292738?v=4)](https://github.com/clsource "clsource (1 commits)")

---

Tags

laravelelasticsearchelasticscout

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)

PHPackages © 2026

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