Made to simplify the usage of Algolia’s API within the Django Framework
Asynchronous methods built on top of Asyncio
Background retry strategy to ensure uptime
Seamless batching via iterators to optimize number of network calls
Zero downtime reindexing feature
API access to all Algolia functionality, AI products, and advanced features, including Recommend
Compatible with Python 3.4+
Supports Django 1.7+, 2.x and 3.x.
Python API Client, Autocomplete, InstantSearch
INSTALL
pip install --upgrade 'algoliasearch-django>=2.0,<3.0'
INDEX
import algoliasearch_django as algoliasearch
from .models import YourModel
algoliasearch.register(YourModel)
class YourModel(AlgoliaIndex):
fields = ('name', 'date')
index_name = 'my_index'
SEARCH
from algoliasearch_django import raw_search
params = { "hitsPerPage": 5 }
response = raw_search(Contact, "jim", params)