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
// final QueryResult result = cluster.query(query);
56
+
// for (JsonObject row : result.rowsAsObject()){
57
+
// System.out.println(String.format("Index Creation Status %s",row.getObject("meta").getString("status")));
58
+
// }
59
+
// System.out.println("Created primary index on collection " + CollectionNames.PROFILE);
60
+
// Thread.sleep(1000);
61
+
// } catch (IndexExistsException e){
62
+
// System.out.println(String.format("Collection's primary index already exists"));
63
+
// } catch (Exception e){
64
+
// System.out.println(String.format("General error <%s> when trying to create index ",e.getMessage()));
65
+
// }
66
66
67
-
try {
68
-
finalQueryResultresult = cluster.query("CREATE INDEX default_profile_firstName_index ON " + props.getBucketName() + "._default." + CollectionNames.PROFILE + "(firstName)");
69
-
Thread.sleep(1000);
70
-
} catch (Exceptione) {
71
-
System.out.println(String.format("Failed to create secondary index on profile.firstName: %s", e.getMessage()));
72
-
}
67
+
// try {
68
+
// final QueryResult result = cluster.query("CREATE INDEX default_profile_firstName_index ON " + props.getBucketName() + "._default." + CollectionNames.PROFILE + "(firstName)");
69
+
// Thread.sleep(1000);
70
+
// } catch (Exception e) {
71
+
// System.out.println(String.format("Failed to create secondary index on profile.firstName: %s", e.getMessage()));
0 commit comments