> ## Documentation Index
> Fetch the complete documentation index at: https://runway.duncanmcclean.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> Runway integrates with Statamic's Search feature, allowing you to search your Eloquent models in the Control Panel and via the `{{ search:results }}` tag.

## Configuration

```php config/statamic/search.php theme={null}
'indexes' => [
    'myindex' => [
        'driver' => 'local',
        'searchables' => ['collection:blog', 'runway:order'], // [!code ++]
    ],
],
```

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:*`.

### Title field

By default, when displaying search results, Runway will use the first listable column as the 'title field'. If you'd like to change this, add the `title_field` option to your resource's config:

```php config/runway.php theme={null}
'resources' => [
	\App\Models\Order::class => [
	    'name' => 'Orders',
		'title_field' => 'name',
	],
],
```

## Further documentation...

For further documentation on integrating Search in your site, please review the [Statamic Documentation](https://statamic.dev/search#overview).
