PHPackages                             wehaa/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. [Search &amp; Filtering](/categories/search)
4. /
5. wehaa/laravel-scout-elasticsearch

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

wehaa/laravel-scout-elasticsearch
=================================

Elasticsearch Driver for Laravel Scout

v0.5-alpha(1y ago)01.5k1[1 issues](https://github.com/wehaa/laravel-scout-elasticsearch/issues)PHPPHP &gt;=7.1CI failing

Since May 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wehaa/laravel-scout-elasticsearch)[ Packagist](https://packagist.org/packages/wehaa/laravel-scout-elasticsearch)[ RSS](/packages/wehaa-laravel-scout-elasticsearch/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

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

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

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

Supporting Laravel and 5.7+

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

[](#installation)

You can install the package via composer:

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

### Setting up Elasticsearch configuration

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

This command will publish the scout.php configuration file to your config directory:

```
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
```

Then add the `elasticsearch` key in the array on `config/scout.php` file.

```
     'elasticsearch' => [
        /*
        |--------------------------------------------------------------------------
        | Custom Elasticsearch Client Configuration
        |--------------------------------------------------------------------------
        |
        | This array will be passed to the Elasticsearch client.
        | See configuration options here:
        |
        | http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_configuration.html
        */

        'hosts' => [
            [
                'host' => env('ELASTICSEARCH_HOST', 'localhost'),
                'port' => env('ELASTICSEARCH_PORT', '9200'),
                'scheme' => '', // http or https
                'user' => '',
                'pass' => ''
            ]
        ],

        /**
         * The client will retry n times
         */
        'retries' => env('ELASTICSEARCH_RETRIES', 3),

        /*
        |--------------------------------------------------------------------------
        | Default Index Name
        |--------------------------------------------------------------------------
        |
        | This is the index name use for all models
        */

        'default_index' => 'wehaa',
     ]

```

### .env file example:

[](#env-file-example)

```
SCOUT_DRIVER=elasticsearch
ELASTICSEARCH_HOST=http://127.0.0.1
ELASTICSEARCH_PORT=9200
```

Usage:
------

[](#usage)

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

### Batch Import

[](#batch-import)

If you are installing Scout into an existing project, you may already have database records you need to import into your search driver. Scout provides an import Artisan command that you may use to import all of your existing records into your search indexes:

```
php artisan scout:import "App\Post"
```

The flush command may be used to remove all of a model's records from your search indexes:

```
php artisan scout:flush "App\Post"
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

Total

5

Last Release

642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/071080ffc3e6211f7087871e646e589a200ddbf7ca600bc5c45edc6257846016?d=identicon)[emilianotisato](/maintainers/emilianotisato)

---

Top Contributors

[![juniorgerdet](https://avatars.githubusercontent.com/u/4742111?v=4)](https://github.com/juniorgerdet "juniorgerdet (5 commits)")[![emilianotisato](https://avatars.githubusercontent.com/u/18596215?v=4)](https://github.com/emilianotisato "emilianotisato (4 commits)")[![msassa](https://avatars.githubusercontent.com/u/570080?v=4)](https://github.com/msassa "msassa (4 commits)")[![ivanmarquez](https://avatars.githubusercontent.com/u/463224?v=4)](https://github.com/ivanmarquez "ivanmarquez (1 commits)")

---

Tags

laravelelasticsearchscout

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

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

Elasticsearch Driver for Laravel Scout

8023.7k1](/packages/baijunyao-laravel-scout-elasticsearch)

PHPackages © 2026

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