File tree Expand file tree Collapse file tree 3 files changed +2537
-2356
lines changed Expand file tree Collapse file tree 3 files changed +2537
-2356
lines changed Original file line number Diff line number Diff line change 11import { html } from 'htm/preact' ;
22import algoliasearch from 'algoliasearch/lite' ;
3- import { autocomplete , getAlgoliaResults , highlightHit } from '@algolia/autocomplete-js' ;
3+ import { autocomplete , getAlgoliaHits , highlightHit } from '@algolia/autocomplete-js' ;
44import { createAlgoliaInsightsPlugin } from '@algolia/autocomplete-plugin-algolia-insights' ;
55import insightsClient from 'search-insights' ;
66
@@ -38,7 +38,7 @@ function initAutocomplete(item){
3838 return itemUrl ;
3939 } ,
4040 getItems ( ) {
41- return getAlgoliaResults ( {
41+ return getAlgoliaHits ( {
4242 searchClient,
4343 queries : [
4444 {
@@ -83,4 +83,4 @@ function initAutocomplete(item){
8383
8484}
8585
86- locations . forEach ( initAutocomplete ) ;
86+ locations . forEach ( initAutocomplete ) ;
Original file line number Diff line number Diff line change 1313 "scripts" : {
1414 "develop" : " bundle exec jekyll clean && webpack --mode production && JEKYLL_ENV=testing bundle exec jekyll build --trace -V" ,
1515 "develop-inc" : " webpack --mode production && JEKYLL_ENV=testing bundle exec jekyll build --trace -V -I"
16- },
16+
17+ },
1718 "devDependencies" : {
1819 "@babel/cli" : " ^7.6.0" ,
1920 "@babel/core" : " ^7.6.0" ,
You can’t perform that action at this time.
0 commit comments