(graph, label, *properties, sync=False)
| 42 | return _create_index(graph, q, relation, "exact-match", sync) |
| 43 | |
| 44 | def 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 | |
| 50 | def drop_exact_match_index(graph, label, attribute): |
| 51 | q = f"DROP INDEX ON :{label}({attribute})" |