You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/10/08 11:31:42 UTC

[incubator-hugegraph] branch master updated: chore: fix GraphOfTheMoviesExample exception (#1953)

This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new 767bdfc39 chore: fix GraphOfTheMoviesExample exception (#1953)
767bdfc39 is described below

commit 767bdfc39729dd830f32694c33cadbd235ad46ca
Author: Simon Cheung <mi...@apache.org>
AuthorDate: Sat Oct 8 19:31:36 2022 +0800

    chore: fix GraphOfTheMoviesExample exception (#1953)
---
 .../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 1f994c0d5..7ccc023a5 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 class GraphOfTheMoviesExample {
               .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);