# Searching Models

By default the search bar in admin will search for **users**, **pages** and **articles**. You can add more models in the `searchables` array in `config/hotcoffee.php`.

```php
'searchables' => [
    'products' => [
        'label'     => 'Products', // Title of tab
        'fields'    => ['name', 'description'], // Fields to search in
        'index'     => ['id', 'name'], // Fields to index on search results
        'route'     => 'admin.products.edit' // Route name to edit or view model
    ],
],
```

<div align="left"><img src="/files/-M45dn4xQ2NCWAzg3NUz" alt=""></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://taffo.gitbook.io/hotcoffee/customization-and-logic/searching-models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
