我正在尝试在Algolia中索引联系人。
这是我的代码:
StreamReader re = File.OpenText("contacts.json");
JsonTextReader reader = new JsonTextReader(re);`
JArray batch = JArray.Load(reader);
// Add objects
Index index = client.InitIndex("contacts");
index.AddObjects(batch);
我在最后一行代码遇到了一个错误:
Not enough rights to add an object