aboutsummaryrefslogtreecommitdiff
path: root/index.c
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-12-08 20:35:56 +0100
committerarf20 <aruizfernandez05@gmail.com>2025-12-08 20:35:56 +0100
commit9dac0a21e1466c52e60b049c0b84bea2680aa3b8 (patch)
tree54352b425e28f402c68f3253225d6d2a1d2528db /index.c
parentdd5a1ea40bc3d9cbf7005222569eda55a108442e (diff)
downloadarfnet2-search-9dac0a21e1466c52e60b049c0b84bea2680aa3b8.tar.gz
arfnet2-search-9dac0a21e1466c52e60b049c0b84bea2680aa3b8.zip
fixed types of queriesHEADmaster
Diffstat (limited to 'index.c')
-rw-r--r--index.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.c b/index.c
index 3840549..6d00ee5 100644
--- a/index.c
+++ b/index.c
@@ -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;