You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] Document the index requirement for global Gremlin has() property queries #577
The HugeGraph 1.7 Gremlin guide lists has as a supported filtering step. The 1.7 Java Client guide gives examples of property queries backed by indexes, but I could not find an explicit rule explaining when a globalg.E()/g.V() property query requires an index, or that an unindexed query may fail with NoIndexException even if only one matching edge exists.
On HugeGraph 1.7.0, the index requirement appears to depend on the traversal's starting point: the global query below fails, while a traversal from a known vertex using the same has() predicate succeeds. Is this intended? If so, could the Gremlin guide state the condition and show the alternative of starting from a known vertex or creating an appropriate index?
Environment: HugeGraph 1.7.0 (hugegraph/hugegraph:1.7.0 Docker image), default test backend, Gremlin HTTP endpoint. No index label is created in the reproduction.
Reproduction: Create an edge label whose schema includes tag, then insert one edge with tag = 'x':
The global query reports that properties [tag] are not indexed in edge label DGDocEdge and may not match the secondary condition. With P.without('z'), the analogous global query also raises NoIndexException, while g.V(a.id()).outE().has('tag', P.without('z')).count() returns 1.
The original test report hugegraph-2-analysis-doc-gap.md also observed NoIndexException for g.E().filter(__.has('tag', P.without('x'))). The complete fixture above shows that the failure is not caused by an undefined property key, an edge label that omits tag, or an empty graph.
Activity