Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-551

Neo4j multiple labels can not be queried individually

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 3.0.0-incubating
    • neo4j
    • None

    Description

      With TP3 M7, I can add multiple labels to Neo4j vertex:

      gremlin> v = g.addVertex(label, 'test', 'wikibaseId', 'test')
      ==>v[3]
      gremlin> v.addLabel('test2')
      ==>null
      gremlin> v.labels()
      ==>test
      ==>test2
      

      However, if I try a lookup by this label, it does not work:

      gremlin> g.V().has(label, 'test2')
      gremlin> g.V().has(label, 'test')
      gremlin> g.V().has(label, 'test').hasNext()
      ==>false
      

      This lookup works for nodes with single label, but not for nodes with multiple labels. This, however, works:

      gremlin> g.cypher('MATCH (x:test2) RETURN x')
      ==>[x:v[3]]
      

      So Neo4j query works fine, while TP3 one does not.

      Attachments

        Activity

          People

            okram Marko A. Rodriguez
            smalyshev Stanislav Malyshev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: