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

Function Index_AddField

src/index/index.c:387–397  ·  view source on GitHub ↗

adds field to index

Source from the content-addressed store, hash-verified

385
386// adds field to index
387void Index_AddField
388(
389 Index idx, // index to update
390 IndexField *field // field to add
391) {
392 ASSERT(idx != NULL);
393 ASSERT(field != NULL);
394 ASSERT(!Index_ContainsAttribute(idx, field->id));
395
396 array_append(idx->fields, *field);
397}
398
399// removes fields from index
400void Index_RemoveField

Callers 2

Schema_AddFullTextIndexFunction · 0.85

Calls 1

Index_ContainsAttributeFunction · 0.85

Tested by

no test coverage detected