[{"data":1,"prerenderedAt":2060},["ShallowReactive",2],{"blog:2018:wordpress-to-jekyll-search":3,"blogMore-Development":2020,"comments-wordpress-to-jekyll-search":2033},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"category":11,"tags":12,"excerpt":15,"body":34,"_type":2010,"_id":2011,"_source":2012,"_file":2013,"_stem":2014,"_extension":2015,"url":2016,"wordCount":2017,"minutes":226,"commentCount":154,"image":2018},"/blog/2018/wordpress-to-jekyll-search","2018",false,"en","WordPress to Jekyll part 3 - Site search","Site search is a feature that WordPress got right. Analytics also tells me it is popular. A static site is at a disadvantage, but we have some options to address that.","2018-05-29T08:00:00-08:00","Development",[13,14],"WordPress","Jekyll",{"type":16,"children":17},"root",[18,25],{"type":19,"tag":20,"props":21,"children":22},"element","p",{},[23],{"type":24,"value":9},"text",{"type":19,"tag":20,"props":26,"children":27},{},[28,30,32],{"type":24,"value":29},"My first consideration was to use Google Site Search but it was ",{"type":24,"value":31},"deprecated last year",{"type":24,"value":33},". There are alternative options, but few are free. I agree that people should be paid for their services, something has to keep the lights on, but a small personal blog with no income stream can't justify this cost.",{"type":16,"children":35,"toc":2003},[36,40,47,60,65,71,84,98,104,126,139,395,423,457,463,468,477,482,1958,1964,1969,1975,1980,1989,1997],{"type":19,"tag":20,"props":37,"children":38},{},[39],{"type":24,"value":9},{"type":19,"tag":41,"props":42,"children":44},"h2",{"id":43},"considering-options",[45],{"type":24,"value":46},"Considering options",{"type":19,"tag":20,"props":48,"children":49},{},[50,51,59],{"type":24,"value":29},{"type":19,"tag":52,"props":53,"children":57},"a",{"href":54,"rel":55},"https://searchengineland.com/google-sunset-google-site-search-product-recommends-ad-supported-custom-search-engine-269834",[56],"nofollow",[58],{"type":24,"value":31},{"type":24,"value":33},{"type":19,"tag":20,"props":61,"children":62},{},[63],{"type":24,"value":64},"My next thought was to generate reverse-index JSON files during building. Client-side JavaScript would utilize them as the user types in the search box. It's an idea I might come back to, but the migration had already taken longer than I anticipated, and I like to ship fast and often :)",{"type":19,"tag":41,"props":66,"children":68},{"id":67},"algolia",[69],{"type":24,"value":70},"Algolia",{"type":19,"tag":20,"props":72,"children":73},{},[74,76,82],{"type":24,"value":75},"I soon came across ",{"type":19,"tag":52,"props":77,"children":80},{"href":78,"rel":79},"https://algolia.com",[56],[81],{"type":24,"value":70},{"type":24,"value":83}," which, provides a simple API and free tier. Crucially they also supply a Jekyll plug-in to generate the necessary search indexes! Awesome.",{"type":19,"tag":20,"props":85,"children":86},{},[87,89,96],{"type":24,"value":88},"Set-up was a breeze! Algolia have a specific, useful ",{"type":19,"tag":52,"props":90,"children":93},{"href":91,"rel":92},"https://community.algolia.com/jekyll-algolia/getting-started.html",[56],[94],{"type":24,"value":95},"guide to indexing with Jekyll",{"type":24,"value":97},". Once you sign-up, you'll need to configure indexing and integrate it with your site.",{"type":19,"tag":41,"props":99,"children":101},{"id":100},"index-integration",[102],{"type":24,"value":103},"Index integration",{"type":19,"tag":20,"props":105,"children":106},{},[107,109,116,118,124],{"type":24,"value":108},"Firstly, install the ",{"type":19,"tag":110,"props":111,"children":113},"code",{"className":112},[],[114],{"type":24,"value":115},"jekyll-algolia",{"type":24,"value":117}," gem making sure to specify it in your ",{"type":19,"tag":110,"props":119,"children":121},{"className":120},[],[122],{"type":24,"value":123},"gemfile",{"type":24,"value":125},".",{"type":19,"tag":20,"props":127,"children":128},{},[129,131,137],{"type":24,"value":130},"Then configure your Jekyll ",{"type":19,"tag":110,"props":132,"children":134},{"className":133},[],[135],{"type":24,"value":136},"_config.yml",{"type":24,"value":138}," so it knows what to index and where as well as what document attributes are significant:",{"type":19,"tag":140,"props":141,"children":146},"pre",{"className":142,"code":143,"language":144,"meta":145,"style":145},"language-yml shiki shiki-themes everforest-light dracula","algolia:\n  application_id: { your-algolia-app-id }\n  index_name: { your-algolia-index-name }\n  settings:\n    searchableAttributes:\n      - title\n      - excerpt_text\n      - headings\n      - content\n      - categories\n      - tags\n    attributesForFaceting:\n      - type\n      - searchable(categories)\n      - searchable(tags)\n      - searchable(title)\n","yml","",[147],{"type":19,"tag":110,"props":148,"children":149},{"__ignoreMap":145},[150,167,198,224,237,250,265,278,291,304,317,330,343,356,369,382],{"type":19,"tag":151,"props":152,"children":155},"span",{"class":153,"line":154},"line",1,[156,161],{"type":19,"tag":151,"props":157,"children":159},{"style":158},"--shiki-default:#F57D26;--shiki-dark:#8BE9FD",[160],{"type":24,"value":67},{"type":19,"tag":151,"props":162,"children":164},{"style":163},"--shiki-default:#939F91;--shiki-dark:#FF79C6",[165],{"type":24,"value":166},":\n",{"type":19,"tag":151,"props":168,"children":170},{"class":153,"line":169},2,[171,176,181,187,193],{"type":19,"tag":151,"props":172,"children":173},{"style":158},[174],{"type":24,"value":175},"  application_id",{"type":19,"tag":151,"props":177,"children":178},{"style":163},[179],{"type":24,"value":180},":",{"type":19,"tag":151,"props":182,"children":184},{"style":183},"--shiki-default:#5C6A72;--shiki-dark:#F8F8F2",[185],{"type":24,"value":186}," { ",{"type":19,"tag":151,"props":188,"children":190},{"style":189},"--shiki-default:#8DA101;--shiki-dark:#F1FA8C",[191],{"type":24,"value":192},"your-algolia-app-id",{"type":19,"tag":151,"props":194,"children":195},{"style":183},[196],{"type":24,"value":197}," }\n",{"type":19,"tag":151,"props":199,"children":201},{"class":153,"line":200},3,[202,207,211,215,220],{"type":19,"tag":151,"props":203,"children":204},{"style":158},[205],{"type":24,"value":206},"  index_name",{"type":19,"tag":151,"props":208,"children":209},{"style":163},[210],{"type":24,"value":180},{"type":19,"tag":151,"props":212,"children":213},{"style":183},[214],{"type":24,"value":186},{"type":19,"tag":151,"props":216,"children":217},{"style":189},[218],{"type":24,"value":219},"your-algolia-index-name",{"type":19,"tag":151,"props":221,"children":222},{"style":183},[223],{"type":24,"value":197},{"type":19,"tag":151,"props":225,"children":227},{"class":153,"line":226},4,[228,233],{"type":19,"tag":151,"props":229,"children":230},{"style":158},[231],{"type":24,"value":232},"  settings",{"type":19,"tag":151,"props":234,"children":235},{"style":163},[236],{"type":24,"value":166},{"type":19,"tag":151,"props":238,"children":240},{"class":153,"line":239},5,[241,246],{"type":19,"tag":151,"props":242,"children":243},{"style":158},[244],{"type":24,"value":245},"    searchableAttributes",{"type":19,"tag":151,"props":247,"children":248},{"style":163},[249],{"type":24,"value":166},{"type":19,"tag":151,"props":251,"children":253},{"class":153,"line":252},6,[254,260],{"type":19,"tag":151,"props":255,"children":257},{"style":256},"--shiki-default:#35A77C;--shiki-dark:#FF79C6",[258],{"type":24,"value":259},"      -",{"type":19,"tag":151,"props":261,"children":262},{"style":189},[263],{"type":24,"value":264}," title\n",{"type":19,"tag":151,"props":266,"children":268},{"class":153,"line":267},7,[269,273],{"type":19,"tag":151,"props":270,"children":271},{"style":256},[272],{"type":24,"value":259},{"type":19,"tag":151,"props":274,"children":275},{"style":189},[276],{"type":24,"value":277}," excerpt_text\n",{"type":19,"tag":151,"props":279,"children":281},{"class":153,"line":280},8,[282,286],{"type":19,"tag":151,"props":283,"children":284},{"style":256},[285],{"type":24,"value":259},{"type":19,"tag":151,"props":287,"children":288},{"style":189},[289],{"type":24,"value":290}," headings\n",{"type":19,"tag":151,"props":292,"children":294},{"class":153,"line":293},9,[295,299],{"type":19,"tag":151,"props":296,"children":297},{"style":256},[298],{"type":24,"value":259},{"type":19,"tag":151,"props":300,"children":301},{"style":189},[302],{"type":24,"value":303}," content\n",{"type":19,"tag":151,"props":305,"children":307},{"class":153,"line":306},10,[308,312],{"type":19,"tag":151,"props":309,"children":310},{"style":256},[311],{"type":24,"value":259},{"type":19,"tag":151,"props":313,"children":314},{"style":189},[315],{"type":24,"value":316}," categories\n",{"type":19,"tag":151,"props":318,"children":320},{"class":153,"line":319},11,[321,325],{"type":19,"tag":151,"props":322,"children":323},{"style":256},[324],{"type":24,"value":259},{"type":19,"tag":151,"props":326,"children":327},{"style":189},[328],{"type":24,"value":329}," tags\n",{"type":19,"tag":151,"props":331,"children":333},{"class":153,"line":332},12,[334,339],{"type":19,"tag":151,"props":335,"children":336},{"style":158},[337],{"type":24,"value":338},"    attributesForFaceting",{"type":19,"tag":151,"props":340,"children":341},{"style":163},[342],{"type":24,"value":166},{"type":19,"tag":151,"props":344,"children":346},{"class":153,"line":345},13,[347,351],{"type":19,"tag":151,"props":348,"children":349},{"style":256},[350],{"type":24,"value":259},{"type":19,"tag":151,"props":352,"children":353},{"style":189},[354],{"type":24,"value":355}," type\n",{"type":19,"tag":151,"props":357,"children":359},{"class":153,"line":358},14,[360,364],{"type":19,"tag":151,"props":361,"children":362},{"style":256},[363],{"type":24,"value":259},{"type":19,"tag":151,"props":365,"children":366},{"style":189},[367],{"type":24,"value":368}," searchable(categories)\n",{"type":19,"tag":151,"props":370,"children":372},{"class":153,"line":371},15,[373,377],{"type":19,"tag":151,"props":374,"children":375},{"style":256},[376],{"type":24,"value":259},{"type":19,"tag":151,"props":378,"children":379},{"style":189},[380],{"type":24,"value":381}," searchable(tags)\n",{"type":19,"tag":151,"props":383,"children":385},{"class":153,"line":384},16,[386,390],{"type":19,"tag":151,"props":387,"children":388},{"style":256},[389],{"type":24,"value":259},{"type":19,"tag":151,"props":391,"children":392},{"style":189},[393],{"type":24,"value":394}," searchable(title)\n",{"type":19,"tag":20,"props":396,"children":397},{},[398,400,406,408,414,416,421],{"type":24,"value":399},"Finally, you'll need to run the indexing. You need to ensure the environment variable ",{"type":19,"tag":110,"props":401,"children":403},{"className":402},[],[404],{"type":24,"value":405},"ALGOLIA_API_KEY",{"type":24,"value":407}," is set to your private ",{"type":19,"tag":409,"props":410,"children":411},"strong",{},[412],{"type":24,"value":413},"Admin API Key",{"type":24,"value":415}," from your Algolia ",{"type":19,"tag":409,"props":417,"children":418},{},[419],{"type":24,"value":420},"API Keys",{"type":24,"value":422}," page, then run the following command after your static content is generated:",{"type":19,"tag":140,"props":424,"children":428},{"className":425,"code":426,"language":427,"meta":145,"style":145},"language-bash shiki shiki-themes everforest-light dracula","bundle exec jekyll algolia\n","bash",[429],{"type":19,"tag":110,"props":430,"children":431},{"__ignoreMap":145},[432],{"type":19,"tag":151,"props":433,"children":434},{"class":153,"line":154},[435,441,447,452],{"type":19,"tag":151,"props":436,"children":438},{"style":437},"--shiki-default:#8DA101;--shiki-dark:#50FA7B",[439],{"type":24,"value":440},"bundle",{"type":19,"tag":151,"props":442,"children":444},{"style":443},"--shiki-default:#DFA000;--shiki-dark:#F1FA8C",[445],{"type":24,"value":446}," exec",{"type":19,"tag":151,"props":448,"children":449},{"style":443},[450],{"type":24,"value":451}," jekyll",{"type":19,"tag":151,"props":453,"children":454},{"style":443},[455],{"type":24,"value":456}," algolia\n",{"type":19,"tag":41,"props":458,"children":460},{"id":459},"site-integration",[461],{"type":24,"value":462},"Site integration",{"type":19,"tag":20,"props":464,"children":465},{},[466],{"type":24,"value":467},"Wiring up the search box can be a little overwhelming as they have so many clients, options and APIs available. I went with a design that presents the results as you type like this:",{"type":19,"tag":469,"props":470,"children":476},"img",{"src":471,"alt":472,"className":473,"style":475},"https://img.damieng.com/blog/AlgoliaResults.png","Screenshot of DamienG.com site search",[474],"screenshot","width: 50%",[],{"type":19,"tag":20,"props":478,"children":479},{},[480],{"type":24,"value":481},"This design uses two of their libraries - the search lite and the search helper plus some code to wire it up to my search box and render the results in a drop-down list. I'll probably further tweak the result format and maybe consider wiring up to the API directly as two libraries for such a simple use case seems a bit overkill.",{"type":19,"tag":140,"props":483,"children":487},{"className":484,"code":485,"language":486,"meta":145,"style":145},"language-html shiki shiki-themes everforest-light dracula","\u003Cscript src=\"https://cdn.jsdelivr.net/npm/algoliasearch@3/dist/algoliasearchLite.min.js\">\u003C/script>\n\u003Cscript src=\"https://cdn.jsdelivr.net/npm/algoliasearch-helper@2.26.0/dist/algoliasearch.helper.min.js\">\u003C/script>\n\u003Cscript>\n  let searchForm = document.getElementById(\"search-form\")\n  let hits = document.getElementById(\"hits\")\n  let algolia = algoliasearch(\n    \"{your-algolia-app-id}\",\n    \"{your-algolia-search-token}\"\n  )\n  let helper = algoliasearchHelper(algolia, \"{your-algolia-index-name}\", {\n    hitsPerPage: 10,\n    maxValuesPerFacet: 1,\n    getRankingInfo: false,\n  })\n  helper.on(\"result\", searchCallback)\n\n  function runSearch() {\n    let term = document.getElementById(\"s\").value\n    if (term.length > 0) helper.setQuery(term).search()\n    else searchForm.classList.remove(\"open\")\n  }\n\n  function searchCallback(results) {\n    if (results.hits.length === 0) {\n      hits.innerHTML = \"\u003Cli>\u003Ca>No results!\u003C/a>\u003C/li>\"\n    } else {\n      renderHits(results)\n      searchForm.classList.add(\"open\")\n    }\n    let credits = document.createElement(\"li\")\n    credits.innerHTML =\n      \"\u003Cimg src=\\\"https://www.algolia.com/static_assets/images/press/downloads/search-by-algolia.svg\\\" onclick=\\\"window.open('https://www.algolia.com', '_blank')\\\" />\"\n    hits.appendChild(credits)\n  }\n\n  function renderHits(results) {\n    hits.innerHTML = \"\"\n    for (let i = 0; i \u003C results.hits.length; i++) {\n      let li = document.createElement(\"li\")\n      let title = document.createElement(\"a\")\n      title.innerHTML = results.hits[i]._highlightResult.title.value\n      title.href = results.hits[i].url\n      li.appendChild(title)\n      hits.appendChild(li)\n    }\n  }\n\u003C/script>\n","html",[488],{"type":19,"tag":110,"props":489,"children":490},{"__ignoreMap":145},[491,547,591,606,662,711,737,759,776,784,828,850,871,892,900,939,948,973,1035,1105,1158,1167,1175,1206,1252,1288,1306,1320,1366,1375,1426,1448,1503,1526,1534,1542,1571,1596,1681,1731,1780,1840,1882,1904,1925,1933,1941],{"type":19,"tag":151,"props":492,"children":493},{"class":153,"line":154},[494,500,506,512,518,524,529,533,538,542],{"type":19,"tag":151,"props":495,"children":497},{"style":496},"--shiki-default:#8DA101;--shiki-dark:#F8F8F2",[498],{"type":24,"value":499},"\u003C",{"type":19,"tag":151,"props":501,"children":503},{"style":502},"--shiki-default:#F57D26;--shiki-dark:#FF79C6",[504],{"type":24,"value":505},"script",{"type":19,"tag":151,"props":507,"children":509},{"style":508},"--shiki-default:#DFA000;--shiki-default-font-style:inherit;--shiki-dark:#50FA7B;--shiki-dark-font-style:italic",[510],{"type":24,"value":511}," src",{"type":19,"tag":151,"props":513,"children":515},{"style":514},"--shiki-default:#8DA101;--shiki-dark:#FF79C6",[516],{"type":24,"value":517},"=",{"type":19,"tag":151,"props":519,"children":521},{"style":520},"--shiki-default:#8DA101;--shiki-dark:#E9F284",[522],{"type":24,"value":523},"\"",{"type":19,"tag":151,"props":525,"children":526},{"style":189},[527],{"type":24,"value":528},"https://cdn.jsdelivr.net/npm/algoliasearch@3/dist/algoliasearchLite.min.js",{"type":19,"tag":151,"props":530,"children":531},{"style":520},[532],{"type":24,"value":523},{"type":19,"tag":151,"props":534,"children":535},{"style":496},[536],{"type":24,"value":537},">\u003C/",{"type":19,"tag":151,"props":539,"children":540},{"style":502},[541],{"type":24,"value":505},{"type":19,"tag":151,"props":543,"children":544},{"style":496},[545],{"type":24,"value":546},">\n",{"type":19,"tag":151,"props":548,"children":549},{"class":153,"line":169},[550,554,558,562,566,570,575,579,583,587],{"type":19,"tag":151,"props":551,"children":552},{"style":496},[553],{"type":24,"value":499},{"type":19,"tag":151,"props":555,"children":556},{"style":502},[557],{"type":24,"value":505},{"type":19,"tag":151,"props":559,"children":560},{"style":508},[561],{"type":24,"value":511},{"type":19,"tag":151,"props":563,"children":564},{"style":514},[565],{"type":24,"value":517},{"type":19,"tag":151,"props":567,"children":568},{"style":520},[569],{"type":24,"value":523},{"type":19,"tag":151,"props":571,"children":572},{"style":189},[573],{"type":24,"value":574},"https://cdn.jsdelivr.net/npm/algoliasearch-helper@2.26.0/dist/algoliasearch.helper.min.js",{"type":19,"tag":151,"props":576,"children":577},{"style":520},[578],{"type":24,"value":523},{"type":19,"tag":151,"props":580,"children":581},{"style":496},[582],{"type":24,"value":537},{"type":19,"tag":151,"props":584,"children":585},{"style":502},[586],{"type":24,"value":505},{"type":19,"tag":151,"props":588,"children":589},{"style":496},[590],{"type":24,"value":546},{"type":19,"tag":151,"props":592,"children":593},{"class":153,"line":200},[594,598,602],{"type":19,"tag":151,"props":595,"children":596},{"style":496},[597],{"type":24,"value":499},{"type":19,"tag":151,"props":599,"children":600},{"style":502},[601],{"type":24,"value":505},{"type":19,"tag":151,"props":603,"children":604},{"style":496},[605],{"type":24,"value":546},{"type":19,"tag":151,"props":607,"children":608},{"class":153,"line":226},[609,614,619,623,628,633,638,643,648,653,657],{"type":19,"tag":151,"props":610,"children":611},{"style":502},[612],{"type":24,"value":613},"  let",{"type":19,"tag":151,"props":615,"children":616},{"style":183},[617],{"type":24,"value":618}," searchForm ",{"type":19,"tag":151,"props":620,"children":621},{"style":502},[622],{"type":24,"value":517},{"type":19,"tag":151,"props":624,"children":625},{"style":183},[626],{"type":24,"value":627}," document",{"type":19,"tag":151,"props":629,"children":631},{"style":630},"--shiki-default:#939F91;--shiki-dark:#F8F8F2",[632],{"type":24,"value":125},{"type":19,"tag":151,"props":634,"children":635},{"style":437},[636],{"type":24,"value":637},"getElementById",{"type":19,"tag":151,"props":639,"children":640},{"style":183},[641],{"type":24,"value":642},"(",{"type":19,"tag":151,"props":644,"children":646},{"style":645},"--shiki-default:#DFA000;--shiki-dark:#E9F284",[647],{"type":24,"value":523},{"type":19,"tag":151,"props":649,"children":650},{"style":443},[651],{"type":24,"value":652},"search-form",{"type":19,"tag":151,"props":654,"children":655},{"style":645},[656],{"type":24,"value":523},{"type":19,"tag":151,"props":658,"children":659},{"style":183},[660],{"type":24,"value":661},")\n",{"type":19,"tag":151,"props":663,"children":664},{"class":153,"line":239},[665,669,674,678,682,686,690,694,698,703,707],{"type":19,"tag":151,"props":666,"children":667},{"style":502},[668],{"type":24,"value":613},{"type":19,"tag":151,"props":670,"children":671},{"style":183},[672],{"type":24,"value":673}," hits ",{"type":19,"tag":151,"props":675,"children":676},{"style":502},[677],{"type":24,"value":517},{"type":19,"tag":151,"props":679,"children":680},{"style":183},[681],{"type":24,"value":627},{"type":19,"tag":151,"props":683,"children":684},{"style":630},[685],{"type":24,"value":125},{"type":19,"tag":151,"props":687,"children":688},{"style":437},[689],{"type":24,"value":637},{"type":19,"tag":151,"props":691,"children":692},{"style":183},[693],{"type":24,"value":642},{"type":19,"tag":151,"props":695,"children":696},{"style":645},[697],{"type":24,"value":523},{"type":19,"tag":151,"props":699,"children":700},{"style":443},[701],{"type":24,"value":702},"hits",{"type":19,"tag":151,"props":704,"children":705},{"style":645},[706],{"type":24,"value":523},{"type":19,"tag":151,"props":708,"children":709},{"style":183},[710],{"type":24,"value":661},{"type":19,"tag":151,"props":712,"children":713},{"class":153,"line":252},[714,718,723,727,732],{"type":19,"tag":151,"props":715,"children":716},{"style":502},[717],{"type":24,"value":613},{"type":19,"tag":151,"props":719,"children":720},{"style":183},[721],{"type":24,"value":722}," algolia ",{"type":19,"tag":151,"props":724,"children":725},{"style":502},[726],{"type":24,"value":517},{"type":19,"tag":151,"props":728,"children":729},{"style":437},[730],{"type":24,"value":731}," algoliasearch",{"type":19,"tag":151,"props":733,"children":734},{"style":183},[735],{"type":24,"value":736},"(\n",{"type":19,"tag":151,"props":738,"children":739},{"class":153,"line":267},[740,745,750,754],{"type":19,"tag":151,"props":741,"children":742},{"style":645},[743],{"type":24,"value":744},"    \"",{"type":19,"tag":151,"props":746,"children":747},{"style":443},[748],{"type":24,"value":749},"{your-algolia-app-id}",{"type":19,"tag":151,"props":751,"children":752},{"style":645},[753],{"type":24,"value":523},{"type":19,"tag":151,"props":755,"children":756},{"style":183},[757],{"type":24,"value":758},",\n",{"type":19,"tag":151,"props":760,"children":761},{"class":153,"line":280},[762,766,771],{"type":19,"tag":151,"props":763,"children":764},{"style":645},[765],{"type":24,"value":744},{"type":19,"tag":151,"props":767,"children":768},{"style":443},[769],{"type":24,"value":770},"{your-algolia-search-token}",{"type":19,"tag":151,"props":772,"children":773},{"style":645},[774],{"type":24,"value":775},"\"\n",{"type":19,"tag":151,"props":777,"children":778},{"class":153,"line":293},[779],{"type":19,"tag":151,"props":780,"children":781},{"style":183},[782],{"type":24,"value":783},"  )\n",{"type":19,"tag":151,"props":785,"children":786},{"class":153,"line":306},[787,791,796,800,805,810,814,819,823],{"type":19,"tag":151,"props":788,"children":789},{"style":502},[790],{"type":24,"value":613},{"type":19,"tag":151,"props":792,"children":793},{"style":183},[794],{"type":24,"value":795}," helper ",{"type":19,"tag":151,"props":797,"children":798},{"style":502},[799],{"type":24,"value":517},{"type":19,"tag":151,"props":801,"children":802},{"style":437},[803],{"type":24,"value":804}," algoliasearchHelper",{"type":19,"tag":151,"props":806,"children":807},{"style":183},[808],{"type":24,"value":809},"(algolia, ",{"type":19,"tag":151,"props":811,"children":812},{"style":645},[813],{"type":24,"value":523},{"type":19,"tag":151,"props":815,"children":816},{"style":443},[817],{"type":24,"value":818},"{your-algolia-index-name}",{"type":19,"tag":151,"props":820,"children":821},{"style":645},[822],{"type":24,"value":523},{"type":19,"tag":151,"props":824,"children":825},{"style":183},[826],{"type":24,"value":827},", {\n",{"type":19,"tag":151,"props":829,"children":830},{"class":153,"line":319},[831,836,840,846],{"type":19,"tag":151,"props":832,"children":833},{"style":183},[834],{"type":24,"value":835},"    hitsPerPage",{"type":19,"tag":151,"props":837,"children":838},{"style":163},[839],{"type":24,"value":180},{"type":19,"tag":151,"props":841,"children":843},{"style":842},"--shiki-default:#DF69BA;--shiki-dark:#BD93F9",[844],{"type":24,"value":845}," 10",{"type":19,"tag":151,"props":847,"children":848},{"style":183},[849],{"type":24,"value":758},{"type":19,"tag":151,"props":851,"children":852},{"class":153,"line":332},[853,858,862,867],{"type":19,"tag":151,"props":854,"children":855},{"style":183},[856],{"type":24,"value":857},"    maxValuesPerFacet",{"type":19,"tag":151,"props":859,"children":860},{"style":163},[861],{"type":24,"value":180},{"type":19,"tag":151,"props":863,"children":864},{"style":842},[865],{"type":24,"value":866}," 1",{"type":19,"tag":151,"props":868,"children":869},{"style":183},[870],{"type":24,"value":758},{"type":19,"tag":151,"props":872,"children":873},{"class":153,"line":345},[874,879,883,888],{"type":19,"tag":151,"props":875,"children":876},{"style":183},[877],{"type":24,"value":878},"    getRankingInfo",{"type":19,"tag":151,"props":880,"children":881},{"style":163},[882],{"type":24,"value":180},{"type":19,"tag":151,"props":884,"children":885},{"style":842},[886],{"type":24,"value":887}," false",{"type":19,"tag":151,"props":889,"children":890},{"style":183},[891],{"type":24,"value":758},{"type":19,"tag":151,"props":893,"children":894},{"class":153,"line":358},[895],{"type":19,"tag":151,"props":896,"children":897},{"style":183},[898],{"type":24,"value":899},"  })\n",{"type":19,"tag":151,"props":901,"children":902},{"class":153,"line":371},[903,908,912,917,921,925,930,934],{"type":19,"tag":151,"props":904,"children":905},{"style":183},[906],{"type":24,"value":907},"  helper",{"type":19,"tag":151,"props":909,"children":910},{"style":630},[911],{"type":24,"value":125},{"type":19,"tag":151,"props":913,"children":914},{"style":437},[915],{"type":24,"value":916},"on",{"type":19,"tag":151,"props":918,"children":919},{"style":183},[920],{"type":24,"value":642},{"type":19,"tag":151,"props":922,"children":923},{"style":645},[924],{"type":24,"value":523},{"type":19,"tag":151,"props":926,"children":927},{"style":443},[928],{"type":24,"value":929},"result",{"type":19,"tag":151,"props":931,"children":932},{"style":645},[933],{"type":24,"value":523},{"type":19,"tag":151,"props":935,"children":936},{"style":183},[937],{"type":24,"value":938},", searchCallback)\n",{"type":19,"tag":151,"props":940,"children":941},{"class":153,"line":384},[942],{"type":19,"tag":151,"props":943,"children":945},{"emptyLinePlaceholder":944},true,[946],{"type":24,"value":947},"\n",{"type":19,"tag":151,"props":949,"children":951},{"class":153,"line":950},17,[952,958,963,968],{"type":19,"tag":151,"props":953,"children":955},{"style":954},"--shiki-default:#F85552;--shiki-dark:#FF79C6",[956],{"type":24,"value":957},"  function",{"type":19,"tag":151,"props":959,"children":960},{"style":437},[961],{"type":24,"value":962}," runSearch",{"type":19,"tag":151,"props":964,"children":965},{"style":183},[966],{"type":24,"value":967},"()",{"type":19,"tag":151,"props":969,"children":970},{"style":183},[971],{"type":24,"value":972}," {\n",{"type":19,"tag":151,"props":974,"children":976},{"class":153,"line":975},18,[977,982,987,992,996,1000,1004,1008,1012,1017,1021,1026,1030],{"type":19,"tag":151,"props":978,"children":979},{"style":502},[980],{"type":24,"value":981},"    let",{"type":19,"tag":151,"props":983,"children":984},{"style":183},[985],{"type":24,"value":986}," term",{"type":19,"tag":151,"props":988,"children":989},{"style":502},[990],{"type":24,"value":991}," =",{"type":19,"tag":151,"props":993,"children":994},{"style":183},[995],{"type":24,"value":627},{"type":19,"tag":151,"props":997,"children":998},{"style":630},[999],{"type":24,"value":125},{"type":19,"tag":151,"props":1001,"children":1002},{"style":437},[1003],{"type":24,"value":637},{"type":19,"tag":151,"props":1005,"children":1006},{"style":183},[1007],{"type":24,"value":642},{"type":19,"tag":151,"props":1009,"children":1010},{"style":645},[1011],{"type":24,"value":523},{"type":19,"tag":151,"props":1013,"children":1014},{"style":443},[1015],{"type":24,"value":1016},"s",{"type":19,"tag":151,"props":1018,"children":1019},{"style":645},[1020],{"type":24,"value":523},{"type":19,"tag":151,"props":1022,"children":1023},{"style":183},[1024],{"type":24,"value":1025},")",{"type":19,"tag":151,"props":1027,"children":1028},{"style":630},[1029],{"type":24,"value":125},{"type":19,"tag":151,"props":1031,"children":1032},{"style":183},[1033],{"type":24,"value":1034},"value\n",{"type":19,"tag":151,"props":1036,"children":1038},{"class":153,"line":1037},19,[1039,1044,1049,1053,1058,1063,1068,1072,1077,1081,1086,1091,1095,1100],{"type":19,"tag":151,"props":1040,"children":1041},{"style":954},[1042],{"type":24,"value":1043},"    if",{"type":19,"tag":151,"props":1045,"children":1046},{"style":183},[1047],{"type":24,"value":1048}," (term",{"type":19,"tag":151,"props":1050,"children":1051},{"style":630},[1052],{"type":24,"value":125},{"type":19,"tag":151,"props":1054,"children":1055},{"style":183},[1056],{"type":24,"value":1057},"length",{"type":19,"tag":151,"props":1059,"children":1060},{"style":502},[1061],{"type":24,"value":1062}," >",{"type":19,"tag":151,"props":1064,"children":1065},{"style":842},[1066],{"type":24,"value":1067}," 0",{"type":19,"tag":151,"props":1069,"children":1070},{"style":183},[1071],{"type":24,"value":1025},{"type":19,"tag":151,"props":1073,"children":1074},{"style":183},[1075],{"type":24,"value":1076}," helper",{"type":19,"tag":151,"props":1078,"children":1079},{"style":630},[1080],{"type":24,"value":125},{"type":19,"tag":151,"props":1082,"children":1083},{"style":437},[1084],{"type":24,"value":1085},"setQuery",{"type":19,"tag":151,"props":1087,"children":1088},{"style":183},[1089],{"type":24,"value":1090},"(term)",{"type":19,"tag":151,"props":1092,"children":1093},{"style":630},[1094],{"type":24,"value":125},{"type":19,"tag":151,"props":1096,"children":1097},{"style":437},[1098],{"type":24,"value":1099},"search",{"type":19,"tag":151,"props":1101,"children":1102},{"style":183},[1103],{"type":24,"value":1104},"()\n",{"type":19,"tag":151,"props":1106,"children":1108},{"class":153,"line":1107},20,[1109,1114,1119,1123,1128,1132,1137,1141,1145,1150,1154],{"type":19,"tag":151,"props":1110,"children":1111},{"style":954},[1112],{"type":24,"value":1113},"    else",{"type":19,"tag":151,"props":1115,"children":1116},{"style":183},[1117],{"type":24,"value":1118}," searchForm",{"type":19,"tag":151,"props":1120,"children":1121},{"style":630},[1122],{"type":24,"value":125},{"type":19,"tag":151,"props":1124,"children":1125},{"style":183},[1126],{"type":24,"value":1127},"classList",{"type":19,"tag":151,"props":1129,"children":1130},{"style":630},[1131],{"type":24,"value":125},{"type":19,"tag":151,"props":1133,"children":1134},{"style":437},[1135],{"type":24,"value":1136},"remove",{"type":19,"tag":151,"props":1138,"children":1139},{"style":183},[1140],{"type":24,"value":642},{"type":19,"tag":151,"props":1142,"children":1143},{"style":645},[1144],{"type":24,"value":523},{"type":19,"tag":151,"props":1146,"children":1147},{"style":443},[1148],{"type":24,"value":1149},"open",{"type":19,"tag":151,"props":1151,"children":1152},{"style":645},[1153],{"type":24,"value":523},{"type":19,"tag":151,"props":1155,"children":1156},{"style":183},[1157],{"type":24,"value":661},{"type":19,"tag":151,"props":1159,"children":1161},{"class":153,"line":1160},21,[1162],{"type":19,"tag":151,"props":1163,"children":1164},{"style":183},[1165],{"type":24,"value":1166},"  }\n",{"type":19,"tag":151,"props":1168,"children":1170},{"class":153,"line":1169},22,[1171],{"type":19,"tag":151,"props":1172,"children":1173},{"emptyLinePlaceholder":944},[1174],{"type":24,"value":947},{"type":19,"tag":151,"props":1176,"children":1178},{"class":153,"line":1177},23,[1179,1183,1188,1192,1198,1202],{"type":19,"tag":151,"props":1180,"children":1181},{"style":954},[1182],{"type":24,"value":957},{"type":19,"tag":151,"props":1184,"children":1185},{"style":437},[1186],{"type":24,"value":1187}," searchCallback",{"type":19,"tag":151,"props":1189,"children":1190},{"style":183},[1191],{"type":24,"value":642},{"type":19,"tag":151,"props":1193,"children":1195},{"style":1194},"--shiki-default:#5C6A72;--shiki-default-font-style:inherit;--shiki-dark:#FFB86C;--shiki-dark-font-style:italic",[1196],{"type":24,"value":1197},"results",{"type":19,"tag":151,"props":1199,"children":1200},{"style":183},[1201],{"type":24,"value":1025},{"type":19,"tag":151,"props":1203,"children":1204},{"style":183},[1205],{"type":24,"value":972},{"type":19,"tag":151,"props":1207,"children":1209},{"class":153,"line":1208},24,[1210,1214,1219,1223,1227,1231,1235,1240,1244,1248],{"type":19,"tag":151,"props":1211,"children":1212},{"style":954},[1213],{"type":24,"value":1043},{"type":19,"tag":151,"props":1215,"children":1216},{"style":183},[1217],{"type":24,"value":1218}," (results",{"type":19,"tag":151,"props":1220,"children":1221},{"style":630},[1222],{"type":24,"value":125},{"type":19,"tag":151,"props":1224,"children":1225},{"style":183},[1226],{"type":24,"value":702},{"type":19,"tag":151,"props":1228,"children":1229},{"style":630},[1230],{"type":24,"value":125},{"type":19,"tag":151,"props":1232,"children":1233},{"style":183},[1234],{"type":24,"value":1057},{"type":19,"tag":151,"props":1236,"children":1237},{"style":502},[1238],{"type":24,"value":1239}," ===",{"type":19,"tag":151,"props":1241,"children":1242},{"style":842},[1243],{"type":24,"value":1067},{"type":19,"tag":151,"props":1245,"children":1246},{"style":183},[1247],{"type":24,"value":1025},{"type":19,"tag":151,"props":1249,"children":1250},{"style":183},[1251],{"type":24,"value":972},{"type":19,"tag":151,"props":1253,"children":1255},{"class":153,"line":1254},25,[1256,1261,1265,1270,1274,1279,1284],{"type":19,"tag":151,"props":1257,"children":1258},{"style":183},[1259],{"type":24,"value":1260},"      hits",{"type":19,"tag":151,"props":1262,"children":1263},{"style":630},[1264],{"type":24,"value":125},{"type":19,"tag":151,"props":1266,"children":1267},{"style":183},[1268],{"type":24,"value":1269},"innerHTML",{"type":19,"tag":151,"props":1271,"children":1272},{"style":502},[1273],{"type":24,"value":991},{"type":19,"tag":151,"props":1275,"children":1276},{"style":645},[1277],{"type":24,"value":1278}," \"",{"type":19,"tag":151,"props":1280,"children":1281},{"style":443},[1282],{"type":24,"value":1283},"\u003Cli>\u003Ca>No results!\u003C/a>\u003C/li>",{"type":19,"tag":151,"props":1285,"children":1286},{"style":645},[1287],{"type":24,"value":775},{"type":19,"tag":151,"props":1289,"children":1291},{"class":153,"line":1290},26,[1292,1297,1302],{"type":19,"tag":151,"props":1293,"children":1294},{"style":183},[1295],{"type":24,"value":1296},"    }",{"type":19,"tag":151,"props":1298,"children":1299},{"style":954},[1300],{"type":24,"value":1301}," else",{"type":19,"tag":151,"props":1303,"children":1304},{"style":183},[1305],{"type":24,"value":972},{"type":19,"tag":151,"props":1307,"children":1309},{"class":153,"line":1308},27,[1310,1315],{"type":19,"tag":151,"props":1311,"children":1312},{"style":437},[1313],{"type":24,"value":1314},"      renderHits",{"type":19,"tag":151,"props":1316,"children":1317},{"style":183},[1318],{"type":24,"value":1319},"(results)\n",{"type":19,"tag":151,"props":1321,"children":1323},{"class":153,"line":1322},28,[1324,1329,1333,1337,1341,1346,1350,1354,1358,1362],{"type":19,"tag":151,"props":1325,"children":1326},{"style":183},[1327],{"type":24,"value":1328},"      searchForm",{"type":19,"tag":151,"props":1330,"children":1331},{"style":630},[1332],{"type":24,"value":125},{"type":19,"tag":151,"props":1334,"children":1335},{"style":183},[1336],{"type":24,"value":1127},{"type":19,"tag":151,"props":1338,"children":1339},{"style":630},[1340],{"type":24,"value":125},{"type":19,"tag":151,"props":1342,"children":1343},{"style":437},[1344],{"type":24,"value":1345},"add",{"type":19,"tag":151,"props":1347,"children":1348},{"style":183},[1349],{"type":24,"value":642},{"type":19,"tag":151,"props":1351,"children":1352},{"style":645},[1353],{"type":24,"value":523},{"type":19,"tag":151,"props":1355,"children":1356},{"style":443},[1357],{"type":24,"value":1149},{"type":19,"tag":151,"props":1359,"children":1360},{"style":645},[1361],{"type":24,"value":523},{"type":19,"tag":151,"props":1363,"children":1364},{"style":183},[1365],{"type":24,"value":661},{"type":19,"tag":151,"props":1367,"children":1369},{"class":153,"line":1368},29,[1370],{"type":19,"tag":151,"props":1371,"children":1372},{"style":183},[1373],{"type":24,"value":1374},"    }\n",{"type":19,"tag":151,"props":1376,"children":1378},{"class":153,"line":1377},30,[1379,1383,1388,1392,1396,1400,1405,1409,1413,1418,1422],{"type":19,"tag":151,"props":1380,"children":1381},{"style":502},[1382],{"type":24,"value":981},{"type":19,"tag":151,"props":1384,"children":1385},{"style":183},[1386],{"type":24,"value":1387}," credits",{"type":19,"tag":151,"props":1389,"children":1390},{"style":502},[1391],{"type":24,"value":991},{"type":19,"tag":151,"props":1393,"children":1394},{"style":183},[1395],{"type":24,"value":627},{"type":19,"tag":151,"props":1397,"children":1398},{"style":630},[1399],{"type":24,"value":125},{"type":19,"tag":151,"props":1401,"children":1402},{"style":437},[1403],{"type":24,"value":1404},"createElement",{"type":19,"tag":151,"props":1406,"children":1407},{"style":183},[1408],{"type":24,"value":642},{"type":19,"tag":151,"props":1410,"children":1411},{"style":645},[1412],{"type":24,"value":523},{"type":19,"tag":151,"props":1414,"children":1415},{"style":443},[1416],{"type":24,"value":1417},"li",{"type":19,"tag":151,"props":1419,"children":1420},{"style":645},[1421],{"type":24,"value":523},{"type":19,"tag":151,"props":1423,"children":1424},{"style":183},[1425],{"type":24,"value":661},{"type":19,"tag":151,"props":1427,"children":1429},{"class":153,"line":1428},31,[1430,1435,1439,1443],{"type":19,"tag":151,"props":1431,"children":1432},{"style":183},[1433],{"type":24,"value":1434},"    credits",{"type":19,"tag":151,"props":1436,"children":1437},{"style":630},[1438],{"type":24,"value":125},{"type":19,"tag":151,"props":1440,"children":1441},{"style":183},[1442],{"type":24,"value":1269},{"type":19,"tag":151,"props":1444,"children":1445},{"style":502},[1446],{"type":24,"value":1447}," =\n",{"type":19,"tag":151,"props":1449,"children":1451},{"class":153,"line":1450},32,[1452,1457,1462,1467,1472,1476,1481,1485,1490,1494,1499],{"type":19,"tag":151,"props":1453,"children":1454},{"style":645},[1455],{"type":24,"value":1456},"      \"",{"type":19,"tag":151,"props":1458,"children":1459},{"style":443},[1460],{"type":24,"value":1461},"\u003Cimg src=",{"type":19,"tag":151,"props":1463,"children":1464},{"style":514},[1465],{"type":24,"value":1466},"\\\"",{"type":19,"tag":151,"props":1468,"children":1469},{"style":443},[1470],{"type":24,"value":1471},"https://www.algolia.com/static_assets/images/press/downloads/search-by-algolia.svg",{"type":19,"tag":151,"props":1473,"children":1474},{"style":514},[1475],{"type":24,"value":1466},{"type":19,"tag":151,"props":1477,"children":1478},{"style":443},[1479],{"type":24,"value":1480}," onclick=",{"type":19,"tag":151,"props":1482,"children":1483},{"style":514},[1484],{"type":24,"value":1466},{"type":19,"tag":151,"props":1486,"children":1487},{"style":443},[1488],{"type":24,"value":1489},"window.open('https://www.algolia.com', '_blank')",{"type":19,"tag":151,"props":1491,"children":1492},{"style":514},[1493],{"type":24,"value":1466},{"type":19,"tag":151,"props":1495,"children":1496},{"style":443},[1497],{"type":24,"value":1498}," />",{"type":19,"tag":151,"props":1500,"children":1501},{"style":645},[1502],{"type":24,"value":775},{"type":19,"tag":151,"props":1504,"children":1506},{"class":153,"line":1505},33,[1507,1512,1516,1521],{"type":19,"tag":151,"props":1508,"children":1509},{"style":183},[1510],{"type":24,"value":1511},"    hits",{"type":19,"tag":151,"props":1513,"children":1514},{"style":630},[1515],{"type":24,"value":125},{"type":19,"tag":151,"props":1517,"children":1518},{"style":437},[1519],{"type":24,"value":1520},"appendChild",{"type":19,"tag":151,"props":1522,"children":1523},{"style":183},[1524],{"type":24,"value":1525},"(credits)\n",{"type":19,"tag":151,"props":1527,"children":1529},{"class":153,"line":1528},34,[1530],{"type":19,"tag":151,"props":1531,"children":1532},{"style":183},[1533],{"type":24,"value":1166},{"type":19,"tag":151,"props":1535,"children":1537},{"class":153,"line":1536},35,[1538],{"type":19,"tag":151,"props":1539,"children":1540},{"emptyLinePlaceholder":944},[1541],{"type":24,"value":947},{"type":19,"tag":151,"props":1543,"children":1545},{"class":153,"line":1544},36,[1546,1550,1555,1559,1563,1567],{"type":19,"tag":151,"props":1547,"children":1548},{"style":954},[1549],{"type":24,"value":957},{"type":19,"tag":151,"props":1551,"children":1552},{"style":437},[1553],{"type":24,"value":1554}," renderHits",{"type":19,"tag":151,"props":1556,"children":1557},{"style":183},[1558],{"type":24,"value":642},{"type":19,"tag":151,"props":1560,"children":1561},{"style":1194},[1562],{"type":24,"value":1197},{"type":19,"tag":151,"props":1564,"children":1565},{"style":183},[1566],{"type":24,"value":1025},{"type":19,"tag":151,"props":1568,"children":1569},{"style":183},[1570],{"type":24,"value":972},{"type":19,"tag":151,"props":1572,"children":1574},{"class":153,"line":1573},37,[1575,1579,1583,1587,1591],{"type":19,"tag":151,"props":1576,"children":1577},{"style":183},[1578],{"type":24,"value":1511},{"type":19,"tag":151,"props":1580,"children":1581},{"style":630},[1582],{"type":24,"value":125},{"type":19,"tag":151,"props":1584,"children":1585},{"style":183},[1586],{"type":24,"value":1269},{"type":19,"tag":151,"props":1588,"children":1589},{"style":502},[1590],{"type":24,"value":991},{"type":19,"tag":151,"props":1592,"children":1593},{"style":645},[1594],{"type":24,"value":1595}," \"\"\n",{"type":19,"tag":151,"props":1597,"children":1599},{"class":153,"line":1598},38,[1600,1605,1610,1615,1620,1624,1628,1633,1637,1642,1647,1651,1655,1659,1664,1668,1673,1677],{"type":19,"tag":151,"props":1601,"children":1602},{"style":954},[1603],{"type":24,"value":1604},"    for",{"type":19,"tag":151,"props":1606,"children":1607},{"style":183},[1608],{"type":24,"value":1609}," (",{"type":19,"tag":151,"props":1611,"children":1612},{"style":502},[1613],{"type":24,"value":1614},"let",{"type":19,"tag":151,"props":1616,"children":1617},{"style":183},[1618],{"type":24,"value":1619}," i",{"type":19,"tag":151,"props":1621,"children":1622},{"style":502},[1623],{"type":24,"value":991},{"type":19,"tag":151,"props":1625,"children":1626},{"style":842},[1627],{"type":24,"value":1067},{"type":19,"tag":151,"props":1629,"children":1630},{"style":183},[1631],{"type":24,"value":1632},";",{"type":19,"tag":151,"props":1634,"children":1635},{"style":183},[1636],{"type":24,"value":1619},{"type":19,"tag":151,"props":1638,"children":1639},{"style":502},[1640],{"type":24,"value":1641}," \u003C",{"type":19,"tag":151,"props":1643,"children":1644},{"style":183},[1645],{"type":24,"value":1646}," results",{"type":19,"tag":151,"props":1648,"children":1649},{"style":630},[1650],{"type":24,"value":125},{"type":19,"tag":151,"props":1652,"children":1653},{"style":183},[1654],{"type":24,"value":702},{"type":19,"tag":151,"props":1656,"children":1657},{"style":630},[1658],{"type":24,"value":125},{"type":19,"tag":151,"props":1660,"children":1661},{"style":183},[1662],{"type":24,"value":1663},"length;",{"type":19,"tag":151,"props":1665,"children":1666},{"style":183},[1667],{"type":24,"value":1619},{"type":19,"tag":151,"props":1669,"children":1670},{"style":502},[1671],{"type":24,"value":1672},"++",{"type":19,"tag":151,"props":1674,"children":1675},{"style":183},[1676],{"type":24,"value":1025},{"type":19,"tag":151,"props":1678,"children":1679},{"style":183},[1680],{"type":24,"value":972},{"type":19,"tag":151,"props":1682,"children":1684},{"class":153,"line":1683},39,[1685,1690,1695,1699,1703,1707,1711,1715,1719,1723,1727],{"type":19,"tag":151,"props":1686,"children":1687},{"style":502},[1688],{"type":24,"value":1689},"      let",{"type":19,"tag":151,"props":1691,"children":1692},{"style":183},[1693],{"type":24,"value":1694}," li",{"type":19,"tag":151,"props":1696,"children":1697},{"style":502},[1698],{"type":24,"value":991},{"type":19,"tag":151,"props":1700,"children":1701},{"style":183},[1702],{"type":24,"value":627},{"type":19,"tag":151,"props":1704,"children":1705},{"style":630},[1706],{"type":24,"value":125},{"type":19,"tag":151,"props":1708,"children":1709},{"style":437},[1710],{"type":24,"value":1404},{"type":19,"tag":151,"props":1712,"children":1713},{"style":183},[1714],{"type":24,"value":642},{"type":19,"tag":151,"props":1716,"children":1717},{"style":645},[1718],{"type":24,"value":523},{"type":19,"tag":151,"props":1720,"children":1721},{"style":443},[1722],{"type":24,"value":1417},{"type":19,"tag":151,"props":1724,"children":1725},{"style":645},[1726],{"type":24,"value":523},{"type":19,"tag":151,"props":1728,"children":1729},{"style":183},[1730],{"type":24,"value":661},{"type":19,"tag":151,"props":1732,"children":1734},{"class":153,"line":1733},40,[1735,1739,1744,1748,1752,1756,1760,1764,1768,1772,1776],{"type":19,"tag":151,"props":1736,"children":1737},{"style":502},[1738],{"type":24,"value":1689},{"type":19,"tag":151,"props":1740,"children":1741},{"style":183},[1742],{"type":24,"value":1743}," title",{"type":19,"tag":151,"props":1745,"children":1746},{"style":502},[1747],{"type":24,"value":991},{"type":19,"tag":151,"props":1749,"children":1750},{"style":183},[1751],{"type":24,"value":627},{"type":19,"tag":151,"props":1753,"children":1754},{"style":630},[1755],{"type":24,"value":125},{"type":19,"tag":151,"props":1757,"children":1758},{"style":437},[1759],{"type":24,"value":1404},{"type":19,"tag":151,"props":1761,"children":1762},{"style":183},[1763],{"type":24,"value":642},{"type":19,"tag":151,"props":1765,"children":1766},{"style":645},[1767],{"type":24,"value":523},{"type":19,"tag":151,"props":1769,"children":1770},{"style":443},[1771],{"type":24,"value":52},{"type":19,"tag":151,"props":1773,"children":1774},{"style":645},[1775],{"type":24,"value":523},{"type":19,"tag":151,"props":1777,"children":1778},{"style":183},[1779],{"type":24,"value":661},{"type":19,"tag":151,"props":1781,"children":1783},{"class":153,"line":1782},41,[1784,1789,1793,1797,1801,1805,1809,1814,1818,1823,1827,1832,1836],{"type":19,"tag":151,"props":1785,"children":1786},{"style":183},[1787],{"type":24,"value":1788},"      title",{"type":19,"tag":151,"props":1790,"children":1791},{"style":630},[1792],{"type":24,"value":125},{"type":19,"tag":151,"props":1794,"children":1795},{"style":183},[1796],{"type":24,"value":1269},{"type":19,"tag":151,"props":1798,"children":1799},{"style":502},[1800],{"type":24,"value":991},{"type":19,"tag":151,"props":1802,"children":1803},{"style":183},[1804],{"type":24,"value":1646},{"type":19,"tag":151,"props":1806,"children":1807},{"style":630},[1808],{"type":24,"value":125},{"type":19,"tag":151,"props":1810,"children":1811},{"style":183},[1812],{"type":24,"value":1813},"hits[i]",{"type":19,"tag":151,"props":1815,"children":1816},{"style":630},[1817],{"type":24,"value":125},{"type":19,"tag":151,"props":1819,"children":1820},{"style":183},[1821],{"type":24,"value":1822},"_highlightResult",{"type":19,"tag":151,"props":1824,"children":1825},{"style":630},[1826],{"type":24,"value":125},{"type":19,"tag":151,"props":1828,"children":1829},{"style":183},[1830],{"type":24,"value":1831},"title",{"type":19,"tag":151,"props":1833,"children":1834},{"style":630},[1835],{"type":24,"value":125},{"type":19,"tag":151,"props":1837,"children":1838},{"style":183},[1839],{"type":24,"value":1034},{"type":19,"tag":151,"props":1841,"children":1843},{"class":153,"line":1842},42,[1844,1848,1852,1857,1861,1865,1869,1873,1877],{"type":19,"tag":151,"props":1845,"children":1846},{"style":183},[1847],{"type":24,"value":1788},{"type":19,"tag":151,"props":1849,"children":1850},{"style":630},[1851],{"type":24,"value":125},{"type":19,"tag":151,"props":1853,"children":1854},{"style":183},[1855],{"type":24,"value":1856},"href",{"type":19,"tag":151,"props":1858,"children":1859},{"style":502},[1860],{"type":24,"value":991},{"type":19,"tag":151,"props":1862,"children":1863},{"style":183},[1864],{"type":24,"value":1646},{"type":19,"tag":151,"props":1866,"children":1867},{"style":630},[1868],{"type":24,"value":125},{"type":19,"tag":151,"props":1870,"children":1871},{"style":183},[1872],{"type":24,"value":1813},{"type":19,"tag":151,"props":1874,"children":1875},{"style":630},[1876],{"type":24,"value":125},{"type":19,"tag":151,"props":1878,"children":1879},{"style":183},[1880],{"type":24,"value":1881},"url\n",{"type":19,"tag":151,"props":1883,"children":1885},{"class":153,"line":1884},43,[1886,1891,1895,1899],{"type":19,"tag":151,"props":1887,"children":1888},{"style":183},[1889],{"type":24,"value":1890},"      li",{"type":19,"tag":151,"props":1892,"children":1893},{"style":630},[1894],{"type":24,"value":125},{"type":19,"tag":151,"props":1896,"children":1897},{"style":437},[1898],{"type":24,"value":1520},{"type":19,"tag":151,"props":1900,"children":1901},{"style":183},[1902],{"type":24,"value":1903},"(title)\n",{"type":19,"tag":151,"props":1905,"children":1907},{"class":153,"line":1906},44,[1908,1912,1916,1920],{"type":19,"tag":151,"props":1909,"children":1910},{"style":183},[1911],{"type":24,"value":1260},{"type":19,"tag":151,"props":1913,"children":1914},{"style":630},[1915],{"type":24,"value":125},{"type":19,"tag":151,"props":1917,"children":1918},{"style":437},[1919],{"type":24,"value":1520},{"type":19,"tag":151,"props":1921,"children":1922},{"style":183},[1923],{"type":24,"value":1924},"(li)\n",{"type":19,"tag":151,"props":1926,"children":1928},{"class":153,"line":1927},45,[1929],{"type":19,"tag":151,"props":1930,"children":1931},{"style":183},[1932],{"type":24,"value":1374},{"type":19,"tag":151,"props":1934,"children":1936},{"class":153,"line":1935},46,[1937],{"type":19,"tag":151,"props":1938,"children":1939},{"style":183},[1940],{"type":24,"value":1166},{"type":19,"tag":151,"props":1942,"children":1944},{"class":153,"line":1943},47,[1945,1950,1954],{"type":19,"tag":151,"props":1946,"children":1947},{"style":496},[1948],{"type":24,"value":1949},"\u003C/",{"type":19,"tag":151,"props":1951,"children":1952},{"style":502},[1953],{"type":24,"value":505},{"type":19,"tag":151,"props":1955,"children":1956},{"style":496},[1957],{"type":24,"value":546},{"type":19,"tag":41,"props":1959,"children":1961},{"id":1960},"analytics",[1962],{"type":24,"value":1963},"Analytics",{"type":19,"tag":20,"props":1965,"children":1966},{},[1967],{"type":24,"value":1968},"I'm a big proponent of analytics when used purely for engineering improvement, and Algolia provides a useful dashboard to let you know how performance is doing, what topics are being searched for and what searches might not be returning useful content.",{"type":19,"tag":469,"props":1970,"children":1974},{"src":1971,"title":1972,"className":1973,"style":475},"https://img.damieng.com/blog/AlgoliaDashboard.png","Screenshot of my Algolia dashboard",[474],[],{"type":19,"tag":20,"props":1976,"children":1977},{},[1978],{"type":24,"value":1979},"I'll dig through that when I have a little more time.",{"type":19,"tag":20,"props":1981,"children":1982},{},[1983],{"type":19,"tag":1984,"props":1985,"children":1986},"em",{},[1987],{"type":24,"value":1988},"[)amien",{"type":19,"tag":20,"props":1990,"children":1991},{},[1992],{"type":19,"tag":409,"props":1993,"children":1994},{},[1995],{"type":24,"value":1996},"Note: I do not receive any compensation from Algolia either directly or via any referral program. I'm just a happy user.",{"type":19,"tag":1998,"props":1999,"children":2000},"style",{},[2001],{"type":24,"value":2002},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":145,"searchDepth":169,"depth":169,"links":2004},[2005,2006,2007,2008,2009],{"id":43,"depth":169,"text":46},{"id":67,"depth":169,"text":70},{"id":100,"depth":169,"text":103},{"id":459,"depth":169,"text":462},{"id":1960,"depth":169,"text":1963},"markdown","content:blog:2018:wordpress-to-jekyll-search.md","content","blog/2018/wordpress-to-jekyll-search.md","blog/2018/wordpress-to-jekyll-search","md","/blog/2018/wordpress-to-jekyll-search/",818,{"src":471,"alt":472,"className":2019,"style":475},[474],[2021,2025,2029],{"title":2022,"date":2023,"url":2024},"HTML5 Video Cheatsheet: Optimizing videos for the web","2025-12-05T00:00:00Z","/blog/2025/html5-video-cheatsheet/",{"title":2026,"date":2027,"url":2028},"Transactions in the MongoDB EF Core Provider","2025-10-25","/blog/2025/mongodb-explicit-transactions/",{"title":2030,"date":2031,"url":2032},"Queryable Encryption with the MongoDB EF Core Provider","2025-09-22","/blog/2025/mongodb-queryable-encryption/",[2034],{"_path":2035,"_dir":2036,"_draft":6,"_partial":6,"_locale":7,"title":2037,"description":2038,"id":2039,"date":2040,"name":2041,"avatar":2042,"url":2043,"body":2044,"_type":2010,"_id":2057,"_source":2012,"_file":2058,"_stem":2059,"_extension":2015},"/comments/wordpress-to-jekyll-search/b3c60086","wordpress-to-jekyll-search","B3c60086","I've been searching to have a search bar on top of my blog.  Will try to integrate in my blog.","b3c60086","2018-09-18T09:14:11.2122550Z","Karthik Chintala","https://unavatar.io/twitter/@nani938","https://coderethinked.com/",{"type":16,"children":2045,"toc":2055},[2046,2050],{"type":19,"tag":20,"props":2047,"children":2048},{},[2049],{"type":24,"value":2038},{"type":19,"tag":20,"props":2051,"children":2052},{},[2053],{"type":24,"value":2054},"Thank you Damien.",{"title":145,"searchDepth":169,"depth":169,"links":2056},[],"content:comments:wordpress-to-jekyll-search:b3c60086.md","comments/wordpress-to-jekyll-search/b3c60086.md","comments/wordpress-to-jekyll-search/b3c60086",1779264580833]