Installation | laravel-site-search-rust | Spatie       

 SPATIE  

laravel-site-search-rust
========================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-site-search-rust](https://spatie.be/docs/laravel-site-search-rust/v1)  Installation

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-site-search-rust/v1) 

  Installation    
- [ Introduction ](https://spatie.be/docs/laravel-site-search-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-site-search-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/laravel-site-search-rust/v1/installation-and-setup)
- [ Application integration ](https://spatie.be/docs/laravel-site-search-rust/v1/application-integration)
- [ Usage ](https://spatie.be/docs/laravel-site-search-rust/v1/usage)
- [ Testing ](https://spatie.be/docs/laravel-site-search-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-site-search-rust/v1/changelog)

 Installation
============

- Requires Rust 1.99 or newer and `laravel-rust =0.1.0`.
- Install from Git. Publishing to crates.io is disabled.

Add the package:

```
[dependencies]
spatie-laravel-site-search = { git = "https://github.com/spatie/laravel-site-search-rust" }
```

SQLite is the default database feature. For MySQL:

```
[dependencies]
spatie-laravel-site-search = { git = "https://github.com/spatie/laravel-site-search-rust", default-features = false, features = ["database-mysql"] }
```

- PostgreSQL uses `database-postgres`. Features forward to the framework database drivers.
- Register `service_provider()` and run the application's native migrations to create `site_search_configs`, `site_search_pages`, `site_search_terms`, `site_search_metadata` and `site_search_fulltext`.
- PostgreSQL also installs the package's text-search configuration and stemming dictionary.
- The provider registers migrations but never executes them during boot.
- For connection-only use, pass a configured `laravel::db::AnyConnection` to `SiteSearch::new` and call `migrate().await` during setup. That creates only the search storage tables.
- Existing page-only indexes need one successful recrawl to populate metadata. No application tables are modified.

The provider uses `spatie-laravel-package-tools` pinned to revision `f6bd339`. Git dependencies are public. CI can use `SPATIE_GITHUB_TOKEN` when present but does not require it.

Continue with [application integration](application-integration) for jobs, commands and typed configuration.

Requests require a Tokio runtime. The crawler reads server-rendered HTML by default. JavaScript execution requires configuring one of the published crawler's real renderers and its browser/service prerequisites.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
