Frontend Tools
Templates & Starters
Ecommerce Starter
Starter for product search powered by Algolia InstantSearch
- angular
Python API Client, Autocomplete, InstantSearch
INSTALL
1pip install --upgrade 'algoliasearch-django>=2.0,<3.0'
INDEX
1import algoliasearch_django as algoliasearch 2 3from .models import YourModel 4 5algoliasearch.register(YourModel) 6class YourModel(AlgoliaIndex): 7 fields = ('name', 'date') 8 index_name = 'my_index'
SEARCH
1from algoliasearch_django import raw_search 2 3params = { "hitsPerPage": 5 } 4response = raw_search(Contact, "jim", params)