Introduction | laravel-site-search-go | Spatie       

 SPATIE  

laravel-site-search-go
======================

spatie.be/open-source

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

 Version   v1      

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

  Introduction    
- [ Introduction ](https://spatie.be/docs/laravel-site-search-go/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-site-search-go/v1/support-us)
- [ Requirements ](https://spatie.be/docs/laravel-site-search-go/v1/requirements)
- [ Installation and setup ](https://spatie.be/docs/laravel-site-search-go/v1/installation-setup)
- [ About us ](https://spatie.be/docs/laravel-site-search-go/v1/about-us)
- [ Questions and issues ](https://spatie.be/docs/laravel-site-search-go/v1/questions-issues)
- [ Changelog ](https://spatie.be/docs/laravel-site-search-go/v1/changelog)
- [ Testing ](https://spatie.be/docs/laravel-site-search-go/v1/testing)
- [ Releasing ](https://spatie.be/docs/laravel-site-search-go/v1/releasing)

Basic usage
-----------

- [ High level overview ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/high-level-overview)
- [ Indexing your first site ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/indexing-your-first-site)
- [ Retrieving results ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/retrieving-results)
- [ Preventing content from being indexed ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/preventing-content-from-being-indexed)
- [ Using a search profile ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/using-a-search-profile)
- [ Listing indexes ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/listing-indexes)
- [ Troubleshooting ](https://spatie.be/docs/laravel-site-search-go/v1/basic-usage/troubleshooting)

Advanced usage
--------------

- [ Creating multiple search indexes ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/creating-multiple-search-indexes)
- [ Using a custom indexer ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/using-a-custom-indexer)
- [ Indexing extra properties ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/indexing-extra-properties)
- [ Available events ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/available-events)
- [ Using the database driver ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/using-the-database-driver)
- [ Using the Meilisearch driver ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/using-the-meilisearch-driver)
- [ Building an admin integration ](https://spatie.be/docs/laravel-site-search-go/v1/advanced-usage/filament-integration)

  Laravel-site-search-go 
========================

 Create a full-text search index by crawling your site 

### Useful links

- [Repository](https://github.com/spatie/laravel-site-search-go)
- [Discussions](https://github.com/spatie/laravel-site-search-go/discussions)

Introduction
------------

###  On this page 

1. [ How does this package differ from model search? ](#content-how-does-this-package-differ-from-model-search)
2. [ How does this package differ from Algolia Docsearch? ](#content-how-does-this-package-differ-from-algolia-docsearch)

This package brings website-content search to Laravel Go. What gets indexed can be customized. You can add any [custom property](advanced-usage/indexing-extra-properties) that you want.

The package crawls your site, extracts its HTML content and builds a replacement index without taking the existing index offline. [Get started by indexing your first site](basic-usage/indexing-your-first-site).

Two search drivers are available for persistent indexes:

- Database (default) uses your application's database for full-text search. It supports SQLite FTS5, MySQL FULLTEXT and PostgreSQL text search. No external search service is required.
- Meilisearch supports [synonyms](advanced-usage/using-the-meilisearch-driver#customizing-index-settings) and other advanced Meilisearch features. It requires a running Meilisearch instance.

An in-memory array driver is also available for tests.

How does this package differ from model search?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Laravel Go's model search indexes structured model properties. For example, a product model can expose its name and description as searchable fields.

Site Search indexes HTML content instead. Its indexer extracts titles, descriptions and text from pages, without requiring a model for each page.

How does this package differ from Algolia Docsearch?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[Algolia Docsearch](https://docsearch.algolia.com/) adds search capabilities to open-source documentation.

Site Search may be used to index non-open-source content as well. Where Docsearch makes assumptions about the content structure, the default indexer makes a best effort to extract text from HTML. You can [replace that indexer](advanced-usage/using-a-custom-indexer) for your content.

 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)
