| 31 | } QueryNodeContext; |
| 32 | |
| 33 | static void _process_yield |
| 34 | ( |
| 35 | QueryNodeContext *ctx, |
| 36 | const char **yield |
| 37 | ) { |
| 38 | ctx->yield_node = NULL; |
| 39 | ctx->yield_score = NULL; |
| 40 | |
| 41 | int idx = 0; |
| 42 | for(uint i = 0; i < array_len(yield); i++) { |
| 43 | if(strcasecmp("node", yield[i]) == 0) { |
| 44 | ctx->yield_node = ctx->output + idx; |
| 45 | idx++; |
| 46 | continue; |
| 47 | } |
| 48 | |
| 49 | if(strcasecmp("score", yield[i]) == 0) { |
| 50 | ctx->yield_score = ctx->output + idx; |
| 51 | idx++; |
| 52 | continue; |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | ProcedureResult Proc_FulltextQueryNodeInvoke |
| 58 | ( |
no test coverage detected