aimeos / pagible-search
Pagible CMS - Custom search engine
Requires
- php: ^8.2
- aimeos/pagible-core: 0.10.*
- laravel/scout: ^10.20||^11.1
Requires (Dev)
- orchestra/testbench: ^9.0||^10.0||^11.0
README
Full-text search engine for Pagible CMS using Laravel Scout. Supports SQLite FTS5, MySQL FULLTEXT, PostgreSQL tsvector, and SQL Server CONTAINSTABLE.
This package is part of the Pagible CMS monorepo. For full installation, use:
composer require aimeos/pagible
Configuration
This package uses Laravel Scout configuration (config/scout.php). The installer sets the default driver to cms and enables soft deletes.
Commands
cms:install:search
Installs the Pagible Search package.
php artisan cms:install:search
Publishes the Laravel Scout config and sets the default driver to cms with soft delete support enabled.
cms:index
Rebuilds the full-text search index for all pages, elements, and files.
php artisan cms:index
Processes all records (including trashed) in chunks, updating the search index. Each model stores two index rows per item: one for draft content (latest=true) and one for published content (latest=false).
cms:benchmark:search
Runs search performance benchmarks.
php artisan cms:benchmark:search [options]
| Option | Default | Description |
|---|---|---|
--tenant |
benchmark |
Tenant ID |
--domain |
Domain name | |
--seed |
Seed benchmark data first | |
--pages |
10000 |
Number of pages to generate |
--tries |
100 |
Iterations per benchmark |
--chunk |
50 |
Rows per bulk insert batch |
--unseed |
Remove benchmark data and exit | |
--force |
Run in production |
License
LGPL-3.0-only