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

Function create_fulltext_index

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

Source from the content-addressed store, hash-verified

42 return _create_index(graph, q, relation, "exact-match", sync)
43
44def create_fulltext_index(graph, label, *properties, sync=False):
45 q = f"CALL db.idx.fulltext.createNodeIndex('{label}', "
46 q += ','.join(map("'{0}'".format, properties))
47 q += ")"
48 return _create_index(graph, q, label, "full-text", sync)
49
50def drop_exact_match_index(graph, label, attribute):
51 q = f"DROP INDEX ON :{label}({attribute})"

Calls 1

_create_indexFunction · 0.85