Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit 18e869e

Browse files
authored
[doc] Initial import of data using reindex
Update the readme to mention that a reindex is needed after adding the algolia trait to a model class.
1 parent 144e0bf commit 18e869e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ class Contact extends Model
8989
}
9090
```
9191

92+
After setting up your model, you need to manually do the initial import of your data. You can do this by calling `reindex` on your model class. Using our previous example, this would be:
93+
94+
```php
95+
Contact::reindex();
96+
```
97+
9298
### Ranking & Relevance
9399

94100
We provide many ways to configure your index settings to tune the overall relevancy but the most important ones are the **searchable attributes** and the attributes reflecting the **record popularity**. You can configure them with the following code:

0 commit comments

Comments
 (0)