MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / create_node_exact_match_index

Function create_node_exact_match_index

tests/flow/index_utils.py:36–38  ·  view source on GitHub ↗
(graph, label, *properties, sync=False)

Source from the content-addressed store, hash-verified

34 return graph.query(q, read_only=True)
35
36def create_node_exact_match_index(graph, label, *properties, sync=False):
37 q = f"CREATE INDEX for (n:{label}) on (" + ','.join(map('n.{0}'.format, properties)) + ")"
38 return _create_index(graph, q, label, "exact-match", sync)
39
40def create_edge_exact_match_index(graph, relation, *properties, sync=False):
41 q = f"CREATE INDEX for ()-[r:{relation}]->() on (" + ','.join(map('r.{0}'.format, properties)) +")"

Calls 1

_create_indexFunction · 0.85