Commit af9312f3 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

streaming services search: the type of search (album/artist...) was just ignored...

parent be79f26c
......@@ -540,7 +540,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt,
// In cache ?
SearchCacheEntry *cep;
string cachekey(m_name + ":" + value);
string cachekey(m_name + ":" + slavefield + ":" + value);
if ((cep = o_scache.get(cachekey)) != nullptr) {
int total = resultFromCacheEntry(classfilter, stidx,cnt, *cep, entries);
delete cep;
......@@ -551,6 +551,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt,
unordered_map<string, string> res;
if (!m->cmd.callproc("search", {
{"objid", ctid},
{"field", slavefield},
{"value", value} }, res)) {
LOGERR("PlgWithSlave::search: slave failure\n");
return errorEntries(ctid, entries);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment