You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,15 +79,15 @@ ALGOLIA = {
79
79
}
80
80
```
81
81
82
-
There are two optional settings:
82
+
There are three optional settings:
83
83
84
84
*`INDEX_PREFIX`: prefix all indexes. Use it to separate different applications, like `site1_Products` and `site2_Products`.
85
85
*`INDEX_SUFFIX`: suffix all indexes. Use it to differenciate development and production environment, like `Location_dev` and `Location_prod`.
86
86
*`AUTO_INDEXING`: automatically synchronize the models with Algolia (default to **True**).
87
87
88
88
## Quick Start
89
89
90
-
Simply call `AlgoliaSearch.register()` for each of the models you want to index. A good place to do this is in your application's AppConfig (generally named `apps.py`). More info in the [documentation](https://docs.djangoproject.com/en/1.8/ref/applications/)
90
+
Simply call `algoliasearch.register()` for each of the models you want to index. A good place to do this is in your application's AppConfig (generally named `apps.py`). More info in the [documentation](https://docs.djangoproject.com/en/1.8/ref/applications/)
91
91
92
92
```python
93
93
from django.apps import AppConfig
@@ -162,7 +162,7 @@ Use the `geo_field` attribute to localize your record. `geo_field` should be a c
162
162
163
163
```python
164
164
classContact(models.model):
165
-
name = models.CharField(max_length=20)
165
+
name = models.CharField(max_lenght=20)
166
166
lat = models.FloatField()
167
167
lng = models.FloatField()
168
168
@@ -230,18 +230,9 @@ class ArticleIndex(AlgoliaIndex):
230
230
231
231
## Restrict indexing to a subset of your data
232
232
233
-
You can add constraints controlling if a record must be indexed or not. `should_index` should be a boolean or a callable that returns a boolean.
233
+
You can add constraints controlling if a record must be indexed or not. `should_index` should be a callable that returns a boolean.
0 commit comments