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

Commit 363f1b2

Browse files
author
maxiloc
authored
Merge pull request #79 from algolia/getting-started-reindex
[doc] Initial import of data using reindex
2 parents 37e5a16 + 18e869e commit 363f1b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
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)