From 13941d6155fdb4eac3b6ee7f9c9bd74f4ff60a3f Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 18 Nov 2022 09:52:35 +0000 Subject: [PATCH] add did you mean? prompt --- html/search.ejs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/html/search.ejs b/html/search.ejs index 3e173f84..3b9c3ccf 100644 --- a/html/search.ejs +++ b/html/search.ejs @@ -249,6 +249,18 @@ video[counter].classList.add("shake");
+ <% if (j.Search.Results.DynamicItem) { %> + + <% if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") { %> +
+

+ Did you mean: <%= h.correctedQueryEndpoint.searchEndpoint.query %> ? +

+
+ + <% } %> + <% } %> + <% if (summary.extract_html) { %>
@@ -270,7 +282,9 @@ video[counter].classList.add("shake");
<% } %> - + + + <% j.Search.Results.Video.forEach(x => { %>