@@ -40,14 +40,17 @@ Do not enable the `network` feature if you rely on the value of attributes not p
40
40
``` json
41
41
{
42
42
"self" : " ms-00" ,
43
+ "sharding" : false ,
43
44
"remotes" : {
44
45
"ms-00" : {
45
46
"url" : " http://ms-1235.example.meilisearch.io" ,
46
- "searchApiKey" : " Ecd1SDDi4pqdJD6qYLxD3y7VZAEb4d9j6LJgt4d6xas"
47
+ "searchApiKey" : " Ecd1SDDi4pqdJD6qYLxD3y7VZAEb4d9j6LJgt4d6xas" ,
48
+ "writeApiKey" : " O2OaIHgwGuHNx9duH6kSe1YJ55Bh0dXvLhbr8FQVvr3vRVViBO"
47
49
},
48
50
"ms-01" : {
49
51
"url" : " http://ms-4242.example.meilisearch.io" ,
50
- "searchApiKey" : " hrVu-OMcjPGElK7692K7bwriBoGyHXTMvB5NmZkMKqQ"
52
+ "searchApiKey" : " hrVu-OMcjPGElK7692K7bwriBoGyHXTMvB5NmZkMKqQ" ,
53
+ "writeApiKey" : " bd1ldDoFlfyeoFDe8f3GVNiE8AHX86chmFuzOW7nWYUbPa7ww3"
51
54
}
52
55
}
53
56
}
@@ -59,6 +62,12 @@ Do not enable the `network` feature if you rely on the value of attributes not p
59
62
** Default value** : ` null ` <br />
60
63
** Description** : A string indicating the name of the current instance
61
64
65
+ ### ` sharding `
66
+
67
+ ** Type** : Boolean<br />
68
+ ** Default value** : ` false ` <br />
69
+ ** Description** : A boolean indicating whether sharding should be enabled on the network
70
+
62
71
### ` remotes `
63
72
64
73
** Type** : Object<br />
@@ -70,7 +79,8 @@ Do not enable the `network` feature if you rely on the value of attributes not p
70
79
``` json
71
80
"ms-00" : {
72
81
"url" : " http://ms-1235.example.meilisearch.io" ,
73
- "searchApiKey" : " Ecd1SDDi4pqdJD6qYLxD3y7VZAEb4d9j6LJgt4d6xas"
82
+ "searchApiKey" : " Ecd1SDDi4pqdJD6qYLxD3y7VZAEb4d9j6LJgt4d6xas" ,
83
+ "writeApiKey" : " O2OaIHgwGuHNx9duH6kSe1YJ55Bh0dXvLhbr8FQVvr3vRVViBO"
74
84
}
75
85
```
76
86
@@ -86,6 +96,12 @@ Do not enable the `network` feature if you rely on the value of attributes not p
86
96
** Default value** : ` null ` <br />
87
97
** Description** : An API key with search permissions
88
98
99
+ ##### ` writeApiKey `
100
+
101
+ ** Type** : String<br />
102
+ ** Default value** : ` null ` <br />
103
+ ** Description** : An API key with ` documents.* ` permissions
104
+
89
105
## Get the network object
90
106
91
107
<RouteHighlighter method = " GET" path = " /network" />
@@ -101,14 +117,17 @@ Returns the current value of the instance's network object.
101
117
``` json
102
118
{
103
119
"self" : " ms-00" ,
120
+ "sharding" : false ,
104
121
"remotes" : {
105
122
"ms-00" : {
106
123
"url" : " http://ms-1235.example.meilisearch.io" ,
107
- "searchApiKey" : " Ecd1SDDi4pqdJD6qYLxD3y7VZAEb4d9j6LJgt4d6xas"
124
+ "searchApiKey" : " Ecd1SDDi4pqdJD6qYLxD3y7VZAEb4d9j6LJgt4d6xas" ,
125
+ "writeApiKey" : " O2OaIHgwGuHNx9duH6kSe1YJ55Bh0dXvLhbr8FQVvr3vRVViBO"
108
126
},
109
127
"ms-01" : {
110
128
"url" : " http://ms-4242.example.meilisearch.io" ,
111
- "searchApiKey" : " hrVu-OMcjPGElK7692K7bwriBoGyHXTMvB5NmZkMKqQ"
129
+ "searchApiKey" : " hrVu-OMcjPGElK7692K7bwriBoGyHXTMvB5NmZkMKqQ" ,
130
+ "writeApiKey" : " bd1ldDoFlfyeoFDe8f3GVNiE8AHX86chmFuzOW7nWYUbPa7ww3"
112
131
}
113
132
}
114
133
}
@@ -122,13 +141,14 @@ Update the `self` and `remotes` fields of the network object.
122
141
123
142
Updates to the network object are ** partial** . Only provide the fields you intend to update. Fields not present in the payload will remain unchanged.
124
143
125
- To reset ` self ` and ` remotes ` to their original value, set them to ` null ` . To remove a single ` remote ` from your network, set the value of its name to ` null ` .
144
+ To reset ` self ` , ` sharding ` and ` remotes ` to their original value, set them to ` null ` . To remove a single ` remote ` from your network, set the value of its name to ` null ` .
126
145
127
146
### Body
128
147
129
148
| Name | Type | Default value | Description |
130
149
| :-------------------------------- | :----- | :------------ | :---------------------------------- |
131
150
| ** [ ` self ` ] ( #self ) ** | String | ` null ` | The name of the current instance |
151
+ | ** [ ` sharding ` ] ( #sharding ) ** | Boolean| ` false ` | Whether sharding should be enabled on the network |
132
152
| ** [ ` remotes ` ] ( #remotes ) ** | String | ` null ` | A list of remote objects describing accessible Meilisearch instances |
133
153
134
154
### Example
@@ -140,14 +160,17 @@ To reset `self` and `remotes` to their original value, set them to `null`. To re
140
160
``` json
141
161
{
142
162
"self" : " ms-00" ,
163
+ "sharding" : true ,
143
164
"remotes" : {
144
165
"ms-00" : {
145
166
"url" : " http://INSTANCE_URL" ,
146
- "searchApiKey" : " INSTANCE_API_KEY"
167
+ "searchApiKey" : " INSTANCE_API_KEY" ,
168
+ "writeApiKey" : " INSTANCE_WRITE_API_KEY"
147
169
},
148
170
"ms-01" : {
149
171
"url" : " http://ANOTHER_INSTANCE_URL" ,
150
- "searchApiKey" : " ANOTHER_INSTANCE_API_KEY"
172
+ "searchApiKey" : " ANOTHER_INSTANCE_API_KEY" ,
173
+ "writeApiKey" : " ANOTHER_INSTANCE_WRITE_API_KEY"
151
174
}
152
175
}
153
176
}
0 commit comments