Download the PHP package eloquage/scout-lunr without Composer
On this page you can find all versions of the php package eloquage/scout-lunr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eloquage/scout-lunr
More information about eloquage/scout-lunr
Files in eloquage/scout-lunr
Package scout-lunr
Short Description Laravel Scout Engine for Lunr.js via Cloudflare Workers + KV
License MIT
Informations about the package scout-lunr
Scout Lunr
A Laravel Scout engine that sends search and indexing requests to a Lunr.js service running on Cloudflare Workers with Cloudflare KV. This Composer package contains the Laravel engine; deploy and configure the Worker separately.
Requires PHP 8.2+, Laravel 12 or 13, and Laravel Scout 10.
Install
Set the Worker URL and matching bearer token in .env:
The Worker must implement the authenticated /update, /delete, /flush,
/search, and /info endpoints expected by this engine. The Worker source and
Cloudflare deployment configuration are maintained separately from this package.
Search a model
Add Scout's Searchable trait and define the fields to index:
Import existing records, then search as usual with Scout:
Scout filters such as where() are applied after the Worker returns results.
This engine supports simple equality filters; it does not provide indexed range
or whereIn filtering.
Query builder
Use LunrQueryBuilder to create advanced Lunr query syntax safely:
Models can implement LunrConfigurable to set per-model field boosts, BM25
parameters, and language. The same options can be set globally in
config/scout-lunr.php; non-English languages also need the matching
lunr-languages plugin in the Worker.
Tests
License
MIT. See LICENSE.
All versions of scout-lunr with dependencies
laravel/scout Version ^10.0
illuminate/http Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
spatie/laravel-package-tools Version ^1.19