You are viewing the documentation for an older version of this package. You can check the version you are using with the following command:
composer show spatie/laravel-site-search
Creating multiple search indexes
This package is able to crawl and create search indexes for multiple sites.
You probably used the site-search:create command to create your first site. This command creates a record in the site_search_configs table.
To crawl and create multiple search indexes, just create multiple rows in that table. When executing site-search:crawl an indexing process for each of those sites will be performed.
These are the attributes you should manually update in the table:
name: the name of your index
enabled: if set to false , the site-search:crawl command will not crawl and update this index
crawl_url: the url to be crawled to populate this index
driver_class: the search driver to use. If this value is null, config('site-search.default_driver') will be used when indexing the site
profile_class: the search profile to use. If this value is null, config('site-search.default_profile') will be used when indexing the site
index_base_name: the name that it used by the underlying search engine (eg. Meilisearch) to determine its index name