> For the complete documentation index, see [llms.txt](https://docs.bravostudio.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bravostudio.app/get-started/help-and-tutorials/browse-by-app-feature/backend-search-xano.md).

# Backend search with Xano

Performing a backend search can be very useful when trying to filter items according to one or more properties, specially when there's a big number of items.&#x20;

The video below describes how to perform a text search over a Xano table, using a form in our app (text input + submit button).&#x20;

This could be expanded to other types of search, or to other backends, applying the same idea. The backend should be responsible of applying the necessary filters to return the corresponding items, depending on the user input.&#x20;

### Design

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2F1qWhCaz45ezbF7vbNft3%2FScreenshot%202024-07-16%20at%2019.05.10.png?alt=media&amp;token=ac2e4eb4-482a-4753-bcac-cce4ab9b09f9" alt=""><figcaption><p>Figma Example</p></figcaption></figure>

### Database in Xano

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2Fw36QfDVhF5QyqrFLgFFR%2FScreenshot%202024-07-16%20at%2017.48.10.png?alt=media&amp;token=bec40192-df86-4d76-a277-b27ee577bfae" alt=""><figcaption><p>Fitness_recipe List Table</p></figcaption></figure>

### How to set up the Backend Search with Xano

Based on the [Fuzzy Search tutorial in Xano](https://www.youtube.com/watch?v=5_XkvyAX2C0).

{% embed url="<https://www.loom.com/share/d59dc00dc8f0407f98332415de102ffd?sid=ce90b1e9-69ca-4a53-98cf-3cb591415604>" %}

For smaller lists and searching in the same screen, consider using the Search & Filter functionality:

{% content-ref url="/pages/-MhxbA\_PKkuV6MhfQWK2" %}
[Search & filter](/bravo-tags/mobile-actions/component-search-and-filter.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bravostudio.app/get-started/help-and-tutorials/browse-by-app-feature/backend-search-xano.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
