pxslip / laravel-scout-solr
A driver for the Laravel Scout search tools, using Apache Solr for the backend
Installs: 4 447
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 0
Forks: 13
Open Issues: 5
Requires
- php: ^7.1
- illuminate/support: >=5.5
- laravel/scout: >=5.0
- solarium/solarium: ^4.2
Requires (Dev)
- squizlabs/php_codesniffer: ^3.2
- vimeo/psalm: ^3.1
- dev-main
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.8.1
- v1.8.0
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4
- v1.3
- v1.2
- v1.1
- v1.0
- dev-dependabot/npm_and_yarn/npm_and_yarn-f1947d1c58
- dev-chore/dependencies
- dev-feat/arbitrary-query-params
- dev-chore-update-devcontainer
- dev-feat-configurable-timeout
- dev-fix-unpredictable-query-parser
- dev-pxslip/issue83
- dev-imp-implement-psalm-action
- dev-wskruse/issue80
- dev-chore-npm-deps
- dev-loosen-version-constraint-scout
This package is auto-updated.
Last update: 2025-03-18 17:03:06 UTC
README
This engine provides the interface between Laravel Scout and a Solr instance.
Installation
composer require pxslip/laravel-scout-solr
For Laravel <= 5.4 the service provider should be registered in config/app.php
'providers' => [ // ...other providers Scout\Solr\ScoutSolrServiceProvider::class, ]
Usage
As the engine uses some functionality that is not fully compatible with Laravel\Scout\Builder
and Laravel\Scout\Searchable
you will need to use the Scout\Solr\Builder
and Scout\Solr\Searchable
versions instead:
use Scout\Solr\Searchable; class MyModel extends Model { use Searchable; ... } // and then to perform a search MyModel::where(...) ->orWhere(...) ->facetField(...)
TO DO
- Add bindings instead of just passing the string for better escaping
- Add nested querying to Builder
- Add nested querying to ScoutEngine
- Write tests