Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Site Search Laravel Package

spatie/laravel-site-search

Crawl and index your Laravel site for fast full-text search—like a private Google. Highly customizable crawling and indexing, with concurrent requests. Uses SQLite FTS5 by default (no external services), or Meilisearch for advanced features.

View on GitHub
Deep Wiki
Context7

title: Troubleshooting weight: 8

Using ArrayDriver for Debugging

The ArrayDriver is a useful debugging tool that uses an in memory array for storing indexed files, while providing comprehensive logging of all operations. This makes it perfect for troubleshooting crawling or indexing issues and understanding what content is being processed.

Setting up ArrayDriver

To use the ArrayDriver for debugging, update your config/site-search.php configuration file:

'default_driver' => Spatie\SiteSearch\Drivers\ArrayDriver::class,

Or update the driver_class property on your SiteSearchConfig model.

The ArrayDriver will log all operations to the Laravel log file, allowing you to see exactly what is happening during the crawl and index process.

[!WARNING]
The ArrayDriver is not suitable for production use as it does not persist data and is intended solely for debugging purposes.

Running a Synchronous Crawl

To immediately see the indexing process without queuing, use the --sync flag. This might be useful to debug efficiently:

php artisan site-search:crawl --sync

No output will be shown in the console, but you can check the Laravel log file for detailed information about the crawling and indexing process when using the aforementioned ArrayDriver.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport