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
@@ -46,7 +46,7 @@ function initAutocomplete(item){
46
46
return itemUrl ;
47
47
} ,
48
48
getItems ( ) {
49
- return getAlgoliaResults ( {
49
+ return getAlgoliaHits ( {
50
50
searchClient,
51
51
queries : [
52
52
{
@@ -91,4 +91,4 @@ function initAutocomplete(item){
91
91
92
92
}
93
93
94
- locations . forEach ( initAutocomplete ) ;
94
+ 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