retrieves all indicies from schema active exact-match index pending exact-match index active fulltext index pending fulltext index returns number of indicies set
| 368 | // pending fulltext index |
| 369 | // returns number of indicies set |
| 370 | unsigned short Schema_GetIndicies |
| 371 | ( |
| 372 | const Schema *s, |
| 373 | Index indicies[4] |
| 374 | ) { |
| 375 | int i = 0; |
| 376 | |
| 377 | if(ACTIVE_EXACTMATCH_IDX(s) != NULL) { |
| 378 | indicies[i++] = ACTIVE_EXACTMATCH_IDX(s); |
| 379 | } |
| 380 | |
| 381 | if(PENDING_EXACTMATCH_IDX(s) != NULL) { |
| 382 | indicies[i++] = PENDING_EXACTMATCH_IDX(s); |
| 383 | } |
| 384 | |
| 385 | if(ACTIVE_FULLTEXT_IDX(s) != NULL) { |
| 386 | indicies[i++] = ACTIVE_FULLTEXT_IDX(s); |
| 387 | } |
| 388 | |
| 389 | if(PENDING_FULLTEXT_IDX(s) != NULL) { |
| 390 | indicies[i++] = PENDING_FULLTEXT_IDX(s); |
| 391 | } |
| 392 | |
| 393 | return i; |
| 394 | } |
| 395 | |
| 396 | // get index from schema |
| 397 | // returns NULL if index wasn't found |
no outgoing calls
no test coverage detected