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 1
1
import { html } from 'htm/preact' ;
2
2
import algoliasearch from 'algoliasearch/lite' ;
3
- import { autocomplete , getAlgoliaResults , highlightHit } from '@algolia/autocomplete-js' ;
3
+ import { autocomplete , getAlgoliaHits , highlightHit } from '@algolia/autocomplete-js' ;
4
4
import { createAlgoliaInsightsPlugin } from '@algolia/autocomplete-plugin-algolia-insights' ;
5
5
import insightsClient from 'search-insights' ;
6
6
@@ -38,7 +38,7 @@ function initAutocomplete(item){
38
38
return itemUrl ;
39
39
} ,
40
40
getItems ( ) {
41
- return getAlgoliaResults ( {
41
+ return getAlgoliaHits ( {
42
42
searchClient,
43
43
queries : [
44
44
{
@@ -83,4 +83,4 @@ function initAutocomplete(item){
83
83
84
84
}
85
85
86
- locations . forEach ( initAutocomplete ) ;
86
+ locations . forEach ( initAutocomplete ) ;
Original file line number Diff line number Diff line change 13
13
"scripts" : {
14
14
"develop" : " bundle exec jekyll clean && webpack --mode production && JEKYLL_ENV=testing bundle exec jekyll build --trace -V" ,
15
15
"develop-inc" : " webpack --mode production && JEKYLL_ENV=testing bundle exec jekyll build --trace -V -I"
16
- },
16
+
17
+ },
17
18
"devDependencies" : {
18
19
"@babel/cli" : " ^7.6.0" ,
19
20
"@babel/core" : " ^7.6.0" ,
You can’t perform that action at this time.
0 commit comments