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

Function Schema_RemoveIndex

src/schema/schema.c:490–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490int Schema_RemoveIndex
491(
492 Schema *s,
493 const char *field,
494 IndexType type
495) {
496 ASSERT(s != NULL);
497
498 switch(type) {
499 case IDX_FULLTEXT:
500 return _Schema_RemoveFullTextIndex(s);
501 case IDX_EXACT_MATCH:
502 return _Schema_RemoveExactMatchIndex(s, field);
503 default:
504 return INDEX_FAIL;
505 }
506}
507
508// activate pending exact-match index
509// asserts that pending exact-match index is enabled

Callers 1

GraphContext_DeleteIndexFunction · 0.85

Calls 2

Tested by

no test coverage detected