/// <inheritdoc/> public void UpdateIndex(string nsName, params Index[] indexDefinitions) { using (var nsNameRx = nsName.GetHandle()) foreach (var index in indexDefinitions) { if (index.JsonPaths == null || index.JsonPaths.Count == 0) { index.JsonPaths = new List <string> { index.Name } } ; using (var jsonRx = SerializeJson(index).GetStringHandle()) Assert.ThrowIfError(() => ReindexerBinding.reindexer_update_index(Rx, nsNameRx, jsonRx, _ctxInfo) ); } }