From c2eec1912ae022ff9039cce1cd5556c5a6c2f521 Mon Sep 17 00:00:00 2001 From: Simon Cheung Date: Tue, 23 Aug 2022 11:51:42 +0800 Subject: [PATCH] Update GraphOfTheMoviesExample.java --- .../com/baidu/hugegraph/example/GraphOfTheMoviesExample.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hugegraph-example/src/main/java/com/baidu/hugegraph/example/GraphOfTheMoviesExample.java b/hugegraph-example/src/main/java/com/baidu/hugegraph/example/GraphOfTheMoviesExample.java index 1f994c0d57..7ccc023a5d 100644 --- a/hugegraph-example/src/main/java/com/baidu/hugegraph/example/GraphOfTheMoviesExample.java +++ b/hugegraph-example/src/main/java/com/baidu/hugegraph/example/GraphOfTheMoviesExample.java @@ -105,13 +105,9 @@ public static void load(final HugeGraph graph) { .sourceLabel("person").targetLabel("movie") .create(); - schema.indexLabel("personByName").onV("person").by("name") - .secondary().create(); schema.indexLabel("personByBorn").onV("person").by("born") .range().create(); - graph.tx().open(); - Vertex theMatrix = graph.addVertex(T.label, "movie", "title", "The Matrix", "released", 1999); Vertex keanu = graph.addVertex(T.label, "person", "name", "keanu Reeves", "born", 1964);