1- import  {  compareApiResults  }  from  '../utils/compareResults' 
1+ import  {  compareApiResults ,   NO_TRAFFIC  }  from  '../utils/compareResults' 
22
33export  function  fetchAutocompleteSuggestions ( ctx : Context ,  query : string )  { 
44  const  {  intelligentSearchApi,  intsch }  =  ctx . clients 
@@ -12,7 +12,7 @@ export function fetchAutocompleteSuggestions(ctx: Context, query: string) {
1212  return  compareApiResults ( 
1313    ( )  =>  intelligentSearchApi . fetchAutocompleteSuggestions ( args ) , 
1414    ( )  =>  intsch . fetchAutocompleteSuggestionsV1 ( {  ...args ,  locale } ) , 
15-     ctx . vtex . production  ? 10  : 100 , 
15+     ctx . vtex . production  ? NO_TRAFFIC  : 100 , 
1616    ctx . vtex . logger , 
1717    { 
1818      logPrefix : 'Autocomplete Suggestions' , 
@@ -31,7 +31,7 @@ export function fetchTopSearches(ctx: Context) {
3131  return  compareApiResults ( 
3232    ( )  =>  intelligentSearchApi . fetchTopSearches ( ) , 
3333    ( )  =>  intsch . fetchTopSearchesV1 ( locale ) , 
34-     ctx . vtex . production  ? 10  : 100 , 
34+     ctx . vtex . production  ? NO_TRAFFIC  : 100 , 
3535    ctx . vtex . logger , 
3636    { 
3737      logPrefix : 'Top Searches' , 
@@ -54,7 +54,7 @@ export function fetchSearchSuggestions(ctx: Context, query: string) {
5454  return  compareApiResults ( 
5555    ( )  =>  intelligentSearchApi . fetchSearchSuggestions ( args ) , 
5656    ( )  =>  intsch . fetchSearchSuggestionsV1 ( {  ...args ,  locale } ) , 
57-     ctx . vtex . production  ? 10  : 100 , 
57+     ctx . vtex . production  ? NO_TRAFFIC  : 100 , 
5858    ctx . vtex . logger , 
5959    { 
6060      logPrefix : 'Search Suggestions' , 
@@ -75,7 +75,7 @@ export function fetchCorrection(ctx: Context, query: string) {
7575  return  compareApiResults ( 
7676    ( )  =>  intelligentSearchApi . fetchCorrection ( args ) , 
7777    ( )  =>  intsch . fetchCorrectionV1 ( {  ...args ,  locale } ) , 
78-     ctx . vtex . production  ? 10  : 100 , 
78+     ctx . vtex . production  ? NO_TRAFFIC  : 100 , 
7979    ctx . vtex . logger , 
8080    { 
8181      logPrefix : 'Correction' , 
0 commit comments