You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`queuable`| <pre>boolean</pre><br/>(`true`) | If true, queues the request during downtime, until connected to Kuzzle again |
43
-
|`refresh`| <pre>string</pre><br/>(`""`) | If set to `wait_for`, waits for the change to be reflected for `search` (up to 1s) |
44
-
|[`timeout`](/sdk/7/core-classes/kuzzle/query#timeout)| <pre>number</pre> | Time (in ms) during which a request will still be waited to be resolved. Set it `-1` if you want to wait indefinitely |
|`queuable`| <pre>boolean</pre><br/>(`true`) | If true, queues the request during downtime, until connected to Kuzzle again |
43
+
|`refresh`| <pre>string</pre><br/>(`""`) | If set to `wait_for`, waits for the change to be reflected for `search` (up to 1s) |
44
+
|[`timeout`](/sdk/7/core-classes/kuzzle/query#timeout)| <pre>number</pre> | Time (in ms) during which a request will still be waited to be resolved. Set it `-1` if you want to wait indefinitely |
-`reindexCollection` (optional): if set to `true`, Kuzzle will reindex the collection after updating the mappings. This is useful when you want to update the mappings of a collection that already contains data.
55
55
56
56
```js
57
57
constdefinition= {
58
58
mappings: {
59
59
properties: {
60
-
field1: { type:'text' },
60
+
field1: { type:"text" },
61
61
field2: {
62
62
properties: {
63
-
nestedField: { type:'keyword' }
64
-
}
65
-
}
66
-
}
63
+
nestedField: { type:"keyword" },
64
+
},
65
+
},
66
+
},
67
67
},
68
+
reindexCollection:true,
68
69
settings: {
69
70
// index settings (e.g. analyzers)
70
-
}
71
+
},
71
72
};
72
73
```
74
+
73
75
</SinceBadge>
74
76
75
77
<DeprecatedBadgeversion="7.4.0" >
@@ -83,13 +85,13 @@ The mappings must have a root field `properties` that contain the mappings prope
0 commit comments