@@ -309,6 +309,106 @@ exports[`Test on settings > Admin key: Update embedders settings 1`] = `
309309}
310310` ;
311311
312+ exports [` Test on settings > Admin key: Update facetSearch settings on empty index 1` ] = `
313+ {
314+ " dictionary" : [],
315+ " displayedAttributes" : [
316+ " *" ,
317+ ],
318+ " distinctAttribute" : null ,
319+ " facetSearch" : false ,
320+ " faceting" : {
321+ " maxValuesPerFacet" : 100 ,
322+ " sortFacetValuesBy" : {
323+ " *" : " alpha" ,
324+ },
325+ },
326+ " filterableAttributes" : [],
327+ " localizedAttributes" : null ,
328+ " nonSeparatorTokens" : [],
329+ " pagination" : {
330+ " maxTotalHits" : 1000 ,
331+ },
332+ " prefixSearch" : " indexingTime" ,
333+ " proximityPrecision" : " byWord" ,
334+ " rankingRules" : [
335+ " words" ,
336+ " typo" ,
337+ " proximity" ,
338+ " attribute" ,
339+ " sort" ,
340+ " exactness" ,
341+ ],
342+ " searchCutoffMs" : null ,
343+ " searchableAttributes" : [
344+ " *" ,
345+ ],
346+ " separatorTokens" : [],
347+ " sortableAttributes" : [],
348+ " stopWords" : [],
349+ " synonyms" : {},
350+ " typoTolerance" : {
351+ " disableOnAttributes" : [],
352+ " disableOnWords" : [],
353+ " enabled" : true ,
354+ " minWordSizeForTypos" : {
355+ " oneTypo" : 5 ,
356+ " twoTypos" : 9 ,
357+ },
358+ },
359+ }
360+ ` ;
361+
362+ exports [` Test on settings > Admin key: Update prefixSearch settings on an empty index 1` ] = `
363+ {
364+ " dictionary" : [],
365+ " displayedAttributes" : [
366+ " *" ,
367+ ],
368+ " distinctAttribute" : null ,
369+ " facetSearch" : true ,
370+ " faceting" : {
371+ " maxValuesPerFacet" : 100 ,
372+ " sortFacetValuesBy" : {
373+ " *" : " alpha" ,
374+ },
375+ },
376+ " filterableAttributes" : [],
377+ " localizedAttributes" : null ,
378+ " nonSeparatorTokens" : [],
379+ " pagination" : {
380+ " maxTotalHits" : 1000 ,
381+ },
382+ " prefixSearch" : " disabled" ,
383+ " proximityPrecision" : " byWord" ,
384+ " rankingRules" : [
385+ " words" ,
386+ " typo" ,
387+ " proximity" ,
388+ " attribute" ,
389+ " sort" ,
390+ " exactness" ,
391+ ],
392+ " searchCutoffMs" : null ,
393+ " searchableAttributes" : [
394+ " *" ,
395+ ],
396+ " separatorTokens" : [],
397+ " sortableAttributes" : [],
398+ " stopWords" : [],
399+ " synonyms" : {},
400+ " typoTolerance" : {
401+ " disableOnAttributes" : [],
402+ " disableOnWords" : [],
403+ " enabled" : true ,
404+ " minWordSizeForTypos" : {
405+ " oneTypo" : 5 ,
406+ " twoTypos" : 9 ,
407+ },
408+ },
409+ }
410+ ` ;
411+
312412exports [` Test on settings > Admin key: Update searchableAttributes settings on empty index 1` ] = `
313413{
314414 " dictionary" : [],
@@ -887,6 +987,106 @@ exports[`Test on settings > Master key: Update embedders settings 1`] = `
887987}
888988` ;
889989
990+ exports [` Test on settings > Master key: Update facetSearch settings on empty index 1` ] = `
991+ {
992+ " dictionary" : [],
993+ " displayedAttributes" : [
994+ " *" ,
995+ ],
996+ " distinctAttribute" : null ,
997+ " facetSearch" : false ,
998+ " faceting" : {
999+ " maxValuesPerFacet" : 100 ,
1000+ " sortFacetValuesBy" : {
1001+ " *" : " alpha" ,
1002+ },
1003+ },
1004+ " filterableAttributes" : [],
1005+ " localizedAttributes" : null ,
1006+ " nonSeparatorTokens" : [],
1007+ " pagination" : {
1008+ " maxTotalHits" : 1000 ,
1009+ },
1010+ " prefixSearch" : " indexingTime" ,
1011+ " proximityPrecision" : " byWord" ,
1012+ " rankingRules" : [
1013+ " words" ,
1014+ " typo" ,
1015+ " proximity" ,
1016+ " attribute" ,
1017+ " sort" ,
1018+ " exactness" ,
1019+ ],
1020+ " searchCutoffMs" : null ,
1021+ " searchableAttributes" : [
1022+ " *" ,
1023+ ],
1024+ " separatorTokens" : [],
1025+ " sortableAttributes" : [],
1026+ " stopWords" : [],
1027+ " synonyms" : {},
1028+ " typoTolerance" : {
1029+ " disableOnAttributes" : [],
1030+ " disableOnWords" : [],
1031+ " enabled" : true ,
1032+ " minWordSizeForTypos" : {
1033+ " oneTypo" : 5 ,
1034+ " twoTypos" : 9 ,
1035+ },
1036+ },
1037+ }
1038+ ` ;
1039+
1040+ exports [` Test on settings > Master key: Update prefixSearch settings on an empty index 1` ] = `
1041+ {
1042+ " dictionary" : [],
1043+ " displayedAttributes" : [
1044+ " *" ,
1045+ ],
1046+ " distinctAttribute" : null ,
1047+ " facetSearch" : true ,
1048+ " faceting" : {
1049+ " maxValuesPerFacet" : 100 ,
1050+ " sortFacetValuesBy" : {
1051+ " *" : " alpha" ,
1052+ },
1053+ },
1054+ " filterableAttributes" : [],
1055+ " localizedAttributes" : null ,
1056+ " nonSeparatorTokens" : [],
1057+ " pagination" : {
1058+ " maxTotalHits" : 1000 ,
1059+ },
1060+ " prefixSearch" : " disabled" ,
1061+ " proximityPrecision" : " byWord" ,
1062+ " rankingRules" : [
1063+ " words" ,
1064+ " typo" ,
1065+ " proximity" ,
1066+ " attribute" ,
1067+ " sort" ,
1068+ " exactness" ,
1069+ ],
1070+ " searchCutoffMs" : null ,
1071+ " searchableAttributes" : [
1072+ " *" ,
1073+ ],
1074+ " separatorTokens" : [],
1075+ " sortableAttributes" : [],
1076+ " stopWords" : [],
1077+ " synonyms" : {},
1078+ " typoTolerance" : {
1079+ " disableOnAttributes" : [],
1080+ " disableOnWords" : [],
1081+ " enabled" : true ,
1082+ " minWordSizeForTypos" : {
1083+ " oneTypo" : 5 ,
1084+ " twoTypos" : 9 ,
1085+ },
1086+ },
1087+ }
1088+ ` ;
1089+
8901090exports [` Test on settings > Master key: Update searchableAttributes settings on empty index 1` ] = `
8911091{
8921092 " dictionary" : [],
0 commit comments