Skip to content

Commit

Permalink
Docs: Improve example on search page
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 22, 2025
1 parent 94d28f3 commit 7061580
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ Runway integrates with [Statamic's Search functionality](https://statamic.dev/se

```php
// config/statamic/search.php
'myindex' => [
'driver' => 'local',
'searchables' => ['collection:blog', 'runway:order'],
]

'indexes' => [
'myindex' => [
'driver' => 'local',
'searchables' => ['collection:blog', 'runway:order'], // [tl! add]
],
],
```

You can scope the resources you'd like to be searchable, using the `runway:{resourceHandle}` syntax. If you'd like everything in Runway to be searchable, you can use`runway:*`.
Expand Down

0 comments on commit 7061580

Please sign in to comment.