Toggle navigation
EN
EN
DE
ES
FR
IT
UK
Help
Log In
Help
Log In
EN
EN
DE
ES
FR
IT
UK
Home
Messages
Hashtags
Subgroups
Calendar
×
×
×
Close
Likes
Janusgraph-Dev
Messages
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
previous page
#1384
next page
Janusgraph functionality issue
shivain...@...
#1384
Hi,
I have noticed a corruption in index after reindexing vertex-centric indices with direction 'IN'.
Issue :
A self-link is getting added to every vertex after reindexing.
To demonstrate this, I have taken a very small graph consists of two vertices (A & B) and one edge connecting the two.
Edge Label -> link
Edge has one property key (Integer) -> assocKind
//Creating the Vertex Centrix Index
gremlin > edgeLabel = mgmt.getEdgeLabel("link");
gremlin > assocKind= mgmt.getPropertyKey("
assocKind")
gremlin > mgmt.buildEdgeIndex(edgeLabel, "myVertexCentricIndex",
Direction.IN
, assocKind);
Please note i have given the direction IN for the index.
//Creating the Edge from A to B: (a and b are vertices)
a.addEdge("link",b,"assocKind",1)
Output Before Reindexing :
gremlin> g.V().has('name' , 'A').inE().hasLabel('link').
has('assocKind',1)
//no IN edges to vertex A
Correct
gremlin> g.V().has('name' , 'A').outE().hasLabel('link').
has('assocKind',1)
==>e[4e1f-b6g-1bit-1pqw][
14488-link->80024]
Correct
Now I ran the reindex command
// 'index' is the vertex centric index which is created above
gremlin> m.updateIndex(index, SchemaAction.REINDEX).get()
Output After Reindexing :
gremlin> g.V().has('_objId','A').inE().
hasLabel('link').has('
assocKind',1)
==>e[4e1f-b6g-1bit-b6g][14488-
link->14488]
Wrong
gremlin> g.V().has('_objId','A').bothE(
).hasLabel('link').has('
assocKind',1)
==>e[4e1f-b6g-1bit-1pqw][
14488-link->80024]
==>e[4e1f-b6g-1bit-b6g][14488-
link->14488]
Unexpected Link
This issue happens in janusgraph 0.5.2 also.
Thanks
Shiva
More
×
previous page
View All 7 Messages In Topic
next page
previous page
#1384
next page
Join
janusgraph-dev@lists.lfaidata.foundation to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to LF AI and Data Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of janusgraph-dev@lists.lfaidata.foundation?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More Options
More
Home
Hashtags
Subgroups
Calendar
Terms
Toggle navigation
Terms
©
2023
Groups.io