Skip to main content
We recommend using the InstantSearch.js library 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.
Python
from algoliasearch_django import raw_search

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