Skip to content

Commit cd46dcd

Browse files
docs(README): automatic update
Merge pull request #83 from algolia/docs/setSettings-forwardToSlaves docs(setSettings): add forwardToSlaves option Add snippet for Swift [This list might not be relevant] Merge pull request #83 from algolia/docs/setSettings-forwardToSlaves docs(setSettings): add forwardToSlaves option adding precision on EnableRemoveStopWords [ci skip]
1 parent 104eedb commit cd46dcd

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)