diff options
| author | arf20 <aruizfernandez05@gmail.com> | 2025-12-08 20:35:56 +0100 |
|---|---|---|
| committer | arf20 <aruizfernandez05@gmail.com> | 2025-12-08 20:35:56 +0100 |
| commit | 9dac0a21e1466c52e60b049c0b84bea2680aa3b8 (patch) | |
| tree | 54352b425e28f402c68f3253225d6d2a1d2528db /index.c | |
| parent | dd5a1ea40bc3d9cbf7005222569eda55a108442e (diff) | |
| download | arfnet2-search-9dac0a21e1466c52e60b049c0b84bea2680aa3b8.tar.gz arfnet2-search-9dac0a21e1466c52e60b049c0b84bea2680aa3b8.zip | |
Diffstat (limited to 'index.c')
| -rw-r--r-- | index.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -301,7 +301,7 @@ index_lookup_substr_caseinsensitive(map_t *index, const char *query, if (strcasestr(node->data->name, query)) results_insert(results, node->data); if (node->child) - index_lookup_substr(node->child, query, results); + index_lookup_substr_caseinsensitive(node->child, query, results); } } } @@ -317,7 +317,7 @@ index_lookup_exact(map_t *index, const char *query, results_t *results) if (strcmp(node->data->name, query) == 0) results_insert(results, node->data); if (node->child) - index_lookup_substr(node->child, query, results); + index_lookup_exact(node->child, query, results); } } } @@ -347,7 +347,6 @@ index_lookup(map_t *index, lookup_type_t type, const char *query) case LOOKUP_REGEX: index_lookup_regex(index, query, results); break; - } return results; |
