File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ If you already have your own scraper but you still want to use MeiliSearch and `
91
91
</html >
92
92
```
93
93
94
- The ` hostUrl ` and the ` apiKey ` (_ optionnal _ ) fields are the credentials of your MeiliSearch instance.<br >
94
+ The ` hostUrl ` and the ` apiKey ` (_ optional _ ) fields are the credentials of your MeiliSearch instance.<br >
95
95
` indexUid ` is the index identifier in your MeiliSearch instance in which your website content is stored.<br >
96
96
` inputSelector ` is the ` id ` attribute of the HTML search input tag.
97
97
Original file line number Diff line number Diff line change @@ -302,7 +302,6 @@ class DocsSearchBar {
302
302
groupedHits [ level ] = flattenedHits
303
303
} )
304
304
groupedHits = utils . flattenAndFlagFirst ( groupedHits , 'isCategoryHeader' )
305
- console . log ( { groupedHits } )
306
305
// Translate hits into smaller objects to be send to the template
307
306
return groupedHits . map ( ( hit ) => {
308
307
const url = DocsSearchBar . formatURL ( hit )
@@ -331,20 +330,6 @@ class DocsSearchBar {
331
330
! isLvl2 && subcategory && subcategory !== '' && subcategory !== category
332
331
const isLvl0 = ! isLvl1 && ! isLvl2
333
332
334
- console . log ( {
335
- isLvl0,
336
- isLvl1,
337
- isLvl2,
338
- isLvl1EmptyOrDuplicate,
339
- isCategoryHeader : hit . isCategoryHeader ,
340
- isSubCategoryHeader : hit . isSubCategoryHeader ,
341
- isTextOrSubcategoryNonEmpty,
342
- category,
343
- subcategory,
344
- title : displayTitle ,
345
- text,
346
- url,
347
- } )
348
333
return {
349
334
isLvl0,
350
335
isLvl1,
Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ describe('DocsSearchBar', () => {
283
283
hostUrl : 'test.com' ,
284
284
apiKey : 'apiKey' ,
285
285
indexUid : 'indexUID' ,
286
+ inputSelector : '#' ,
286
287
}
287
288
sinon . stub ( DocsSearchBar , 'getInputFromSelector' ) . returns ( false )
288
289
You can’t perform that action at this time.
0 commit comments