StoreBucketProperties sbp = new StoreBucketProperties.Builder(ns)
.withSearchIndex(index.getName())
.build();
client.execute(sbp);
RiakObject ro = new RiakObject()
.setContentType("application/json")
.setValue(BinaryValue.create("{\"name_s\":\"Lion-o\", \"age_i\":30, \"leader_b\":true}"));
Location location = new Location(ns, "liono");
StoreValue sv = new StoreValue.Builder(ro).withLocation(location).build();
client.execute(sv);
ro = new RiakObject()
.setContentType("application/json")
.setValue(BinaryValue.create("{\"name_s\":\"Cheetara\", \"age_i\":28, \"leader_b\":false}"));
location = new Location(ns, "cheetara");
sv = new StoreValue.Builder(ro).withLocation(location).build();
client.execute(sv);
ro = new RiakObject()
.setContentType("application/json")
.setValue(BinaryValue.create("{\"name_s\":\"Snarf\", \"age_i\":43}"));
location = new Location(ns, "snarf");
sv = new StoreValue.Builder(ro).withLocation(location).build();
client.execute(sv);
ro = new RiakObject()
.setContentType("application/json")
.setValue(BinaryValue.create("{\"name_s\":\"Panthro\", \"age_i\":36}"));
location = new Location(ns, "panthro");
sv = new StoreValue.Builder(ro).withLocation(location).build();
client.execute(sv);