How can Multiple Vertex-Centric Indexes Be Built for the Same Edge Label in JanusGraph
Jerry He <jerr...@...>
toggle quoted message Show quoted text
This is a good question. Let me try to answer it.
As you see in the document, multiple vertex-centric indexes can be defined on the same edge type/label. Under the hook, for each vertex-centric index, JanusGraph will create an 'artificial' edge label, and columns will be created/added to the vertex (the same way as you mentioned for the regular column: label id + direction + sort key + adjacent vertex id + edge id). For example, if you create an edge index call 'myindex' for the edge label 'friend', the artificial edge label will be called 'friend:myindex' (the name is actually long id). Then artificial edges (index edges) with this label will be added to the vertex node. The sort keys are the properties defined in the index. In such way, there is no conflict or problem with defining multiple such vertex-centric indexes.
On Fri, Sep 20, 2019 at 1:46 AM Jun Li <jltz9...@...> wrote:
|1 - 1 of 1|