search api accept multiple tags parameter

This commit is contained in:
luddens 2019-07-01 14:34:47 +02:00 committed by Matthieu Gautier
parent 79a64d5af3
commit 794f63e22b

View File

@ -714,7 +714,7 @@ static struct MHD_Response* handle_catalog(RequestContext* request)
startIndex = stoul(request->get_argument("start"));
} catch (...) {}
try {
tags.push_back(request->get_argument("tag"));
tags = kiwix::split(request->get_argument("notag"), ";");
} catch (...) {}
try {
noTags = kiwix::split(request->get_argument("notag"), ";");