Skip to content

Commit

Permalink
fix search page
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Nov 9, 2024
1 parent fb1ec8a commit fefecda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/_templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1>{{ _("Search") }}</h1>
<!-- Adding the widget to search result page -->
<script>
document.addEventListener("DOMContentLoaded", () => {
const queryInput = document.getElementById("search-input").value;
const queryInput = document.querySelector('form.bd-search input').value;

const script = document.createElement("script");
script.src = "https://cdn.nuclia.cloud/nuclia-video-widget.umd.js";
Expand Down Expand Up @@ -52,7 +52,8 @@ <h1>{{ _("Search") }}</h1>
<nuclia-search-bar mode = "dark"
knowledgebox="62407006-2711-4631-9c03-761d156de289"
zone="europe-1"
features="answers,navigateToLink,hideThumbnails"
features="answers,navigateToLink,hideThumbnails,rephrase"
reranker="predict"
></nuclia-search-bar>

<!-- Search results -->
Expand Down

0 comments on commit fefecda

Please sign in to comment.