Skip to content

Commit 3e1a65e

Browse files
author
Clément Le Provost
authored
Merge pull request #86 from algoliareadmebot/master [ci skip]
Update README
2 parents 84f0ca0 + cd46dcd commit 3e1a65e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,16 @@ let settings = ["customRanking": customRanking]
13411341
index.setSettings(settings)
13421342
```
13431343

1344+
## Slave settings
1345+
1346+
You can forward all settings updates to the slaves of an index by using the `forwardToSlaves` option:
1347+
1348+
```swift
1349+
let settings = ["attributesToRetrieve": "name", "birthdate"]
1350+
index.setSettings(settings, forwardToSlaves: true, completionHandler: { (content, error) -> Void in
1351+
// [...]
1352+
})
1353+
```
13441354

13451355
## Indexing parameters
13461356

0 commit comments

Comments
 (0)