diff --git a/src/components/Search/SearchInput.tsx b/src/components/Search/SearchInput.tsx index 5fd7dbfb9..bb308840c 100644 --- a/src/components/Search/SearchInput.tsx +++ b/src/components/Search/SearchInput.tsx @@ -52,6 +52,8 @@ const SUGGEST_SEARCH = new URLSearchParams(); SUGGEST_SEARCH.append('redhat_client', 'console'); // required client id SUGGEST_SEARCH.append('q', REPLACE_TAG); // add query replacement tag and enable fuzzy search with ~ and wildcards SUGGEST_SEARCH.append('suggest.count', '10'); // request 10 results +SUGGEST_SEARCH.append('suggest.dictionary', 'improvedInfixSuggester'); // console new suggest dictionary +SUGGEST_SEARCH.append('suggest.dictionary', 'default'); const SUGGEST_URL = new URL(`https://access.${IS_PROD ? '' : 'stage.'}redhat.com/hydra/proxy/gss-diag/rs/search/autosuggest`); // search API stopped receiving encoded search string @@ -195,9 +197,7 @@ const SearchInput = ({ onStateChange }: SearchInputListener) => { }); const suggests = uniq(items.map(({ allTitle }) => allTitle.replace(/(|<\/b>)/gm, '').trim())); let searchItems = items.map(({ item }) => item); - console.log(suggests); if (items.length < 10) { - console.log({ value }); const altTitleResults = (await fetch( BASE_URL.toString() .replaceAll(REPLACE_TAG, `(${suggests.join(' OR ')} OR ${value})`)