PHPackages                             jeroenherczeg/laravel-scout-solr - 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. jeroenherczeg/laravel-scout-solr

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

jeroenherczeg/laravel-scout-solr
================================

Solr Driver for Laravel Scout

v0.1.3(5y ago)121.0k12[5 issues](https://github.com/jeroenherczeg/laravel-scout-solr/issues)[3 PRs](https://github.com/jeroenherczeg/laravel-scout-solr/pulls)MITPHPPHP ^7.3CI failing

Since Oct 9Pushed 3y ago1 watchersCompare

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

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

Solr Driver for Laravel Scout
=============================

[](#solr-driver-for-laravel-scout)

[![](https://camo.githubusercontent.com/7f0267dcf9048fc1c08d7a27cadcda4a614d683de35d0efce8f225bd55b2e0b5/687474703a2f2f6c7563656e652e6170616368652e6f72672f736f6c722f6173736574732f6964656e746974792f536f6c725f4c6f676f5f6f6e5f77686974652e706e67)](https://camo.githubusercontent.com/7f0267dcf9048fc1c08d7a27cadcda4a614d683de35d0efce8f225bd55b2e0b5/687474703a2f2f6c7563656e652e6170616368652e6f72672f736f6c722f6173736574732f6964656e746974792f536f6c725f4c6f676f5f6f6e5f77686974652e706e67)

[![Latest Version on Packagist](https://camo.githubusercontent.com/063cfbfeae242dbfbbe952268359aff520256e61bd9fe98377a6ed5dd0d2e0a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65726f656e686572637a65672f6c61726176656c2d73636f75742d736f6c722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroenherczeg/laravel-scout-solr)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/37f32c1ede6a410dcfc6d88bdf160773b7eb9e76b16bbeaba5696a9c187b4940/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a65726f656e686572637a65672f6c61726176656c2d73636f75742d736f6c722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jeroenherczeg/laravel-scout-solr)[![Coverage Status](https://camo.githubusercontent.com/39956381d8e8cfc3a02e5d1ce6144b07d2b1c306404f75a8bd4b46aed846d5f4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a65726f656e686572637a65672f6c61726176656c2d73636f75742d736f6c722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jeroenherczeg/laravel-scout-solr/code-structure)[![Quality Score](https://camo.githubusercontent.com/74d670a08a2c6b365a7655e7235b03154e1347502d83e6f97cd4a3e2bef66db1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a65726f656e686572637a65672f6c61726176656c2d73636f75742d736f6c722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jeroenherczeg/laravel-scout-solr)[![Total Downloads](https://camo.githubusercontent.com/aa974aae141986060122f704284d3d5ff05756823b03eba3fceb50a4502b117c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65726f656e686572637a65672f6c61726176656c2d73636f75742d736f6c722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroenherczeg/laravel-scout-solr)[![Laravel Scout](https://camo.githubusercontent.com/848cb70ffd6c89037c5678f303a1a0194c365ecff001e7e71c696474ae695ffb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c25323073636f75742d76352d626c75652e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/5.7/scout)[![Apache Solr](https://camo.githubusercontent.com/cd627c413829ad729fc96db6ca5855177c172711079a569309ec552f1d2d22d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617061636865253230736f6c722d372e352d626c75652e7376673f7374796c653d666c61742d737175617265)](http://lucene.apache.org/solr/)[![PHP](https://camo.githubusercontent.com/c073160ae7c17c11b1fe9974071420128bb41bac3290d51573c5f513e4cbb310/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372d626c75652e7376673f7374796c653d666c61742d737175617265)](http://php.net/)

Documentation
-------------

[](#documentation)

You can read the documentation [here](https://solr-driver-for-laravel-scout.readthedocs.io/en/latest/).

Problems, questions or comments?
--------------------------------

[](#problems-questions-or-comments)

If you have **any** problems, questions or comments, feel free to submit an [issue](link-issue) and I will reply to you as soon as possible.

Prerequisites
-------------

[](#prerequisites)

Install [Laravel Scout](https://laravel.com/docs/8.x/scout).

Install
-------

[](#install)

Install via Composer

```
$ composer require jeroenherczeg/laravel-scout-solr
```

Set your SCOUT\_DRIVER to solr:

```
// .env

...

SCOUT_DRIVER=solr

```

You must add the Scout service provider and the Solr engine service provider in your app.php config:

```
// config/app.php

'providers' => [
    ...
        /*
         * Package Service Providers...
         */
        Laravel\Scout\ScoutServiceProvider::class,
        ScoutEngines\Solr\SolrProvider::class,
],

```

Add the Solr configuration to the scout config file:

```
// config/scout.php

...

    /*
    |--------------------------------------------------------------------------
    | Solr Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure your Solr settings. Solr is the popular, blazing
    | -fast, open source enterprise search platform built on Apache Lucene.
    | If necessary, you can override the configuration in your .env file.
    |
    */

    'solr' => [
        'host' => env('SOLR_HOST', '127.0.0.1'),
        'port' => env('SOLR_PORT', '8983'),
        'path' => env('SOLR_PATH', '/solr/'),
        'core' => env('SOLR_CORE', 'scout'),
    ],
```

Usage
-----

[](#usage)

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

Using Solr with Laravel Homestead
---------------------------------

[](#using-solr-with-laravel-homestead)

You can install Solr within your Homestead virtual machine.

Add the port forwarding to your Homestead.yaml

```
// ~/Homestead/Homestead.yaml

...

ports:
    - send: 18983
      to: 8983

...

```

Add the following install steps to your Homestead after.sh script.

```
// ~/Homestead/after.sh

#!/bin/sh

# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
#
# If you have user-specific configurations you would like
# to apply, you may also create user-customizations.sh,
# which will be run after this script.

# Install Java Runtime Enviroment
sudo apt-get update
sudo apt-get install default-jre -y

# Install Solr 7.5
wget http://www-eu.apache.org/dist/lucene/solr/7.5.0/solr-7.5.0.tgz
tar zxf solr-7.5.0.tgz
cd solr-7.5.0
bin/solr create -c scout
bin/solr start

```

You will need to recreate your the virtual machine.

```
vagrant destroy && vagrant up

```

Once the virtual machine is installed and running, you can access Solr admin on  .

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Jeroen Herczeg](https://github.com/jeroenherczeg)
- [solariumphp/solarium](https://github.com/solariumphp/solarium)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.3% 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 ~249 days

Total

4

Last Release

2023d ago

PHP version history (2 changes)v0.1.0-alphaPHP ^7.0

v0.1.3PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/759412?v=4)[Jeroen Herczeg](/maintainers/jeroenherczeg)[@jeroenherczeg](https://github.com/jeroenherczeg)

---

Top Contributors

[![jeroenherczeg](https://avatars.githubusercontent.com/u/759412?v=4)](https://github.com/jeroenherczeg "jeroenherczeg (25 commits)")[![FrittenKeeZ](https://avatars.githubusercontent.com/u/1186125?v=4)](https://github.com/FrittenKeeZ "FrittenKeeZ (3 commits)")

---

Tags

laravelscoutsearchsearch-enginesolrlaravelsolrscout

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jeroenherczeg-laravel-scout-solr/health.svg)

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

###  Alternatives

[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[zing/laravel-scout-opensearch

Laravel Scout custom engine for OpenSearch

33340.2k](/packages/zing-laravel-scout-opensearch)[romanstruk/manticore-scout-engine

Laravel Manticore Scout Engine

4818.1k](/packages/romanstruk-manticore-scout-engine)[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)
