PHPackages                             konsulting/scout-elastic-app-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. [API Development](/categories/api)
4. /
5. konsulting/scout-elastic-app-search

ActiveLibrary[API Development](/categories/api)

konsulting/scout-elastic-app-search
===================================

Laravel Scount Adapter for Elastic Enterprise App Search

0.3(9mo ago)090MITPHPPHP ^8.2

Since Apr 13Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/konsulting/scout-elastic-app-search)[ Packagist](https://packagist.org/packages/konsulting/scout-elastic-app-search)[ Docs](https://github.com/konsulting/scout-elastic-app-search)[ RSS](/packages/konsulting-scout-elastic-app-search/feed)WikiDiscussions main Synced yesterday

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

Elastic App Search Driver for Laravel Scout
===========================================

[](#elastic-app-search-driver-for-laravel-scout)

Integrate [Elastic App Search](https://www.elastic.co/enterprise-search) with [Laravel Scout](https://laravel.com/docs/8.x/scout).

This is an early but functional version. Tests to be added.

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

[](#installation)

You can install the package via composer:

```
composer require konsulting/scout-elastic-app-search
```

Usage
-----

[](#usage)

In order to use the package, you must set Laravel Scout to use the driver

```
SCOUT_DRIVER=elastic-app-search
```

Then set up the connection details for Elastic App Search

```
SCOUT_ELASTIC_APP_SEARCH_ENDPOINT=
SCOUT_ELASTIC_APP_SEARCH_API_KEY=
```

You will also need to adjust `config/scout.php` so that the chunk sizes are 100 records:

```
'chunk' => [
    'searchable' => 100,
    'unsearchable' => 100,
],
```

Once you have adde the Searchable Trait to your model. You will be able to search with:

```
 $result = Model::search($searchTerm)->get();
```

If you wish to have more control over the search, you can extend it in the familiar way with Scout.

```
 $result = Model::search($searchTerm, function (ElasticAppProxy $elastic, $query, $options) {
    // Adjust the options here
    // E.g. set the search fields in options, and add weightings
    $options['search_fields']['field_name']['weight'] = 1;

   // Use filters, and so on
    $options['filters'] = [
        'all' => [
            'name' => 'Konsulting',
            'keyword' => 'Scout',
        ],
    ];

    // Manipulate the position in results
    $options['page']['size'] = $this->limit;
    $options['page']['current'] = $this->currentPage();

    return $elastic->search($query, $options);
})->get();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Keoghan Litchfield](https://github.com/konsulting)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance56

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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

Every ~520 days

Total

4

Last Release

294d ago

PHP version history (2 changes)0.0.1PHP ^7.4

0.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4703657?v=4)[Konsulting](/maintainers/konsulting)[@konsulting](https://github.com/konsulting)

---

Top Contributors

[![Keoghan](https://avatars.githubusercontent.com/u/6714599?v=4)](https://github.com/Keoghan "Keoghan (7 commits)")[![jocoDomino](https://avatars.githubusercontent.com/u/26391067?v=4)](https://github.com/jocoDomino "jocoDomino (3 commits)")

---

Tags

konsultingscout-elastic-app-search

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/konsulting-scout-elastic-app-search/health.svg)

```
[![Health](https://phpackages.com/badges/konsulting-scout-elastic-app-search/health.svg)](https://phpackages.com/packages/konsulting-scout-elastic-app-search)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[james2doyle/laravel-scout-sonic

Sonic driver for Laravel Scout.

543.0k](/packages/james2doyle-laravel-scout-sonic)[lingxi/ali-opensearch-sdk

364.5k](/packages/lingxi-ali-opensearch-sdk)

PHPackages © 2026

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