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

# Search

> How to search Algolia indices from a Django app.

Use the [InstantSearch.js library](/doc/guides/building-search-ui/what-is-instantsearch/js) to build your search
interface and perform search queries directly from the end-user browser without going through your server.

However, if you want to search from your backend,
you can use the `raw_search(YourModel, 'yourQuery', params)` method.
It retrieves the raw JSON answer from the API, and accepts any
[search parameters](/doc/api-reference/search-api-parameters).

```python Python icon=code theme={"system"}
from algoliasearch_django import raw_search

params = {"hitsPerPage": 5}
response = raw_search(Contact, "jim", params)
```
