{"repo":"ikollipara/django-meili","free":true,"listed":false,"github":"https://github.com/ikollipara/django-meili","clone":"git clone https://github.com/ikollipara/django-meili.git","description":"Django integration with Meilisearch","language":"Python","stars":85,"topics":["django","meilisearch"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Django-Meili A package to integrate Meilisearch with Django in a seamless way. This pacakge is tested on Meilisearch v1.24 - v1.31 . Install Usage Settings Update your settings.py file to include the following: You must define the django meili application before any of your code that uses the application. (NEW) Using djp If you are using DJP as your django plugin manager, then you can simply install the application as normal. If you define your own custom settings, it will take priority over the current settings. Example in Models Update a model to include the following: Searching Now you can search from meilisearch using Model.meilisearch : API MEILISEARCH in settings.py These are the settings available to the package. The values show are the defaults. django meili.models.IndexMixin The IndexMixin is how an index is defined on a model. To configure the IndexMixin define a class on the model called MeiliMeta . The IndexMixin defines two new properties on the model: 1. meilisearch - The queryset used to search. 2. meilisearch - the MeiliMeta values available on the model. In addition, the IndexMixin defines three methods: 1. meili filter() - Should this row be synced in meilisearch 2. meili serialize() - How the model is serialized into a dictionary 3. meili geo() - What does the geo column look like (optional) MeiliMeta The listed values here are default values. The displayed, searchable, filterable, and sortable should all be iterables containing field names, see the example","default_branch":null,"files":null,"tree":[],"storefront":"/r/ikollipara","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ikollipara/django-meili/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}