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

Commit f1b8606

Browse files
committed
Project: s/slave/replica/
1 parent de082bb commit f1b8606

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Change Log
22
==========
33

4+
## Upcoming
5+
- Rename master/slave to primary/replica
6+
47
## 3.4.2 (2016-09-15)
58

69
- New `Client.getIndex()` method to automatically share `Index` instances with same name

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ index.setSettingsAsync(new JSONObject().append("customRanking", "desc(followers)
799799
800800
Performance wise, it's better to do a `setSettingsAsync` before pushing the data
801801

802-
#### Slave settings
802+
#### Replica settings
803803

804-
You can forward all settings updates to the slaves of an index by using the `forwardToSlaves` option:
804+
You can forward all settings updates to the replicas of an index by using the `forwardToReplicas` option:
805805

806806
```android
807807
JSONObject settings = new JSONObject("{\"attributesToRetrieve\": [\"name\", \"birthdate\"]}");
@@ -831,7 +831,7 @@ Parameters that can be overridden at search time also have the `search` [scope](
831831

832832
- [ranking](#ranking) `settings`
833833
- [customRanking](#customranking) `settings`
834-
- [slaves](#slaves) `settings`
834+
- [replicas](#replicas) `settings`
835835

836836
**Filtering / Faceting**
837837

@@ -917,7 +917,7 @@ They are three scopes:
917917

918918
- [ranking](#ranking) `settings`
919919
- [customRanking](#customranking) `settings`
920-
- [slaves](#slaves) `settings`
920+
- [replicas](#replicas) `settings`
921921

922922
**Filtering / Faceting**
923923

@@ -1129,7 +1129,7 @@ For example, `"customRanking" => ["desc(population)", "asc(name)"]`.
11291129
To get a full description of how the Custom Ranking works,
11301130
you can have a look at our [Ranking guide](https://www.algolia.com/doc/guides/relevance/ranking).
11311131

1132-
#### slaves
1132+
#### replicas
11331133

11341134
- scope: `settings`
11351135
- type: `array of strings`
@@ -1144,7 +1144,7 @@ If you want to use different ranking configurations depending of the use case,
11441144
you need to create one index per ranking configuration.
11451145

11461146
This option enables you to perform write operations only on this index and automatically
1147-
update slave indices with the same operations.
1147+
update replica indices with the same operations.
11481148

11491149
### Filtering / Faceting
11501150

algoliasearch/src/main/java/com/algolia/search/saas/Index.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ protected JSONObject getSettings() throws AlgoliaException {
977977
}
978978

979979
/**
980-
* Set settings for this index, not forwarding to slave indices.
980+
* Set settings for this index, not forwarding to replica indices.
981981
*
982982
* @param settings the settings object.
983983
* @throws AlgoliaException
@@ -990,11 +990,11 @@ protected JSONObject setSettings(JSONObject settings) throws AlgoliaException {
990990
* Set settings for this index.
991991
*
992992
* @param settings the settings object.
993-
* @param forwardToSlaves if true, the new settings will be forwarded to slave indices.
993+
* @param forwardToReplicas if true, the new settings will be forwarded to replica indices.
994994
* @throws AlgoliaException
995995
*/
996-
protected JSONObject setSettings(JSONObject settings, boolean forwardToSlaves) throws AlgoliaException {
997-
final String url = "/1/indexes/" + encodedIndexName + "/settings" + "?forwardToSlaves=" + forwardToSlaves;
996+
protected JSONObject setSettings(JSONObject settings, boolean forwardToReplicas) throws AlgoliaException {
997+
final String url = "/1/indexes/" + encodedIndexName + "/settings" + "?forwardToReplicas=" + forwardToReplicas;
998998
return client.putRequest(url, settings.toString());
999999
}
10001000

0 commit comments

Comments
 (0)