| 45 | } |
| 46 | |
| 47 | void Index_RemoveNode |
| 48 | ( |
| 49 | Index idx, // index to update |
| 50 | const Node *n // node to remove from index |
| 51 | ) { |
| 52 | ASSERT(n != NULL); |
| 53 | ASSERT(idx != NULL); |
| 54 | |
| 55 | EntityID id = ENTITY_GET_ID(n); |
| 56 | RSIndex *rsIdx = Index_RSIndex(idx); |
| 57 | |
| 58 | RediSearch_DeleteDocument(rsIdx, &id, sizeof(EntityID)); |
| 59 | } |
| 60 |
no test coverage detected