You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"for t in tagview search analyzer(t._key in tokens(@name,'tag_name'), 'tag_name') let s = BM25(t) sort s desc limit @off,@cnt return {name: t._key, count: t.count}",
"for t in tagview search analyzer(t._key in tokens(@name,'tag_name'), 'tag_name') let s = BM25(t) sort s desc limit @off,@cnt return {name: t._key, count: t.count}",
42
+
{
43
+
name: name,
44
+
off: off,
45
+
cnt: cnt,
46
+
},
47
+
{
48
+
fullCount: true,
49
+
},
50
+
);
51
+
tot=result.getExtra().stats.fullCount;
36
52
37
53
result=result.toArray();
38
54
result.push({
@@ -44,7 +60,34 @@ router
44
60
});
45
61
46
62
res.send(result);
63
+
logger.logRequestSuccess({
64
+
client: client?._id,
65
+
correlationId: req.headers["x-correlation-id"],
66
+
httpVerb: "POST",
67
+
routePath: basePath+"/search",
68
+
status: "Success",
69
+
description: `Search for tags by name(${req.queryParams?.name?.trim()})`,
70
+
extra: {
71
+
requestedName: name,
72
+
returnedCount: result?.length-1,// subtract the paging object
73
+
total_found: tot,
74
+
},
75
+
});
47
76
}catch(e){
77
+
logger.logRequestFailure({
78
+
client: client?._id,
79
+
correlationId: req.headers["x-correlation-id"],
80
+
httpVerb: "POST",
81
+
routePath: basePath+"/search",
82
+
status: "Failure",
83
+
description: `Search for tags by name(${req.queryParams?.name?.trim()})`,
84
+
extra: {
85
+
requestedName: name,
86
+
returnedCount: result?.length-1,// subtract the paging object
0 commit comments