From a70185d646d7b2c42294f004d78d415a3ba17ed3 Mon Sep 17 00:00:00 2001 From: Nithin Asokan <2903839+nithinasokan@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:17:46 -0800 Subject: [PATCH] Use full indexname (#27) --- blocks/adp-search-field/adp-search-field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/adp-search-field/adp-search-field.js b/blocks/adp-search-field/adp-search-field.js index 074653b1..3c31cdc1 100644 --- a/blocks/adp-search-field/adp-search-field.js +++ b/blocks/adp-search-field/adp-search-field.js @@ -85,7 +85,7 @@ function createSuggestionsPlugin(recentSearchesPlugin) { if (enableSearchSuggestions) { querySuggestionsPlugin = createQuerySuggestionsPlugin({ searchClient: getSearchClient(), - indexName: 'query_suggestions', + indexName: INSTANT_SEARCH_INDEX_NAME + '_query_suggestions', getSearchParams({ state }) { // This creates a shared `hitsPerPage` value once the duplicates // between recent searches and Query Suggestions are removed.