diff --git a/static/js/full-search.js b/static/js/full-search.js index 76e1abf..94f722b 100644 --- a/static/js/full-search.js +++ b/static/js/full-search.js @@ -2,7 +2,7 @@ Full Search ================================================================================ This file's main focus in providing the Meilisearch features to the -search/index.html template. +search.html template. For more information on Meilisearch, use: @@ -41,7 +41,7 @@ const search = instantsearch({ search.addWidgets([ instantsearch.widgets.searchBox({ container: "#searchbox", - placeholder: "Search...", + placeholder: "Search the archive here...", }), instantsearch.widgets.clearRefinements({ container: "#clear-refinements" @@ -59,7 +59,7 @@ search.addWidgets([ attribute: "keywords" }), instantsearch.widgets.configure({ - hitsPerPage: 30, + hitsPerPage: 50, snippetEllipsisText: "...", attributesToSnippet: ["title:100"] }), @@ -67,20 +67,18 @@ search.addWidgets([ container: "#hits", templates: { item: ` - +
-
- +
+ {{#helpers.highlight}}{"attribute": "title"}{{/helpers.highlight}} - -{{#helpers.highlight}}{"attribute": "year"}{{/helpers.highlight}} - - + {{#helpers.highlight}}{"attribute": "month"}{{/helpers.highlight}} +{{#helpers.highlight}}{"attribute": "year"}{{/helpers.highlight}} - + {{keywords}}