File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
view/frontend/web/internals Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,7 @@ requirejs(['algoliaBundle'], function(algoliaBundle) {
292
292
293
293
hit . displayKey = hit . displayKey || hit . name ;
294
294
295
+ hit . __indexName = algoliaConfig . indexName + "_" + section . name ;
295
296
hit . __queryID = payload . queryID ;
296
297
hit . __position = payload . hits . indexOf ( hit ) + 1 ;
297
298
@@ -336,6 +337,7 @@ requirejs(['algoliaBundle'], function(algoliaBundle) {
336
337
var toEscape = hit . _highlightResult . query . value ;
337
338
hit . _highlightResult . query . value = algoliaBundle . autocomplete . escapeHighlightedString ( toEscape ) ;
338
339
340
+ hit . __indexName = algoliaConfig . indexName + "_" + section . name ;
339
341
hit . __queryID = payload . queryID ;
340
342
hit . __position = payload . hits . indexOf ( hit ) + 1 ;
341
343
@@ -355,6 +357,7 @@ requirejs(['algoliaBundle'], function(algoliaBundle) {
355
357
suggestion : function ( hit , payload ) {
356
358
hit . url = algoliaConfig . baseUrl + '/catalogsearch/result/?q=' + hit . value + '&refinement_key=' + encodeURIComponent ( section . name ) ;
357
359
360
+ hit . __indexName = algoliaConfig . indexName + "_section_" + section . name ;
358
361
hit . __queryID = payload . queryID ;
359
362
hit . __position = payload . hits . indexOf ( hit ) + 1 ;
360
363
You can’t perform that action at this time.
0 commit comments