Skip to content

Commit 4624874

Browse files
committed
fix: automaticFacetFilter
1 parent e4ff110 commit 4624874

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

tests/CTS/requests/search/saveRule.json

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@
248248
"consequence": {
249249
"params": {
250250
"restrictSearchableAttributes": ["title", "book_id"],
251-
"automaticFacetFilters": [{
252-
"facet":"director"
253-
}],
251+
"automaticFacetFilters": ["director"],
254252
"query": {
255253
"edits": [{
256254
"type": "remove",
@@ -275,9 +273,7 @@
275273
"consequence": {
276274
"params": {
277275
"restrictSearchableAttributes": ["title", "book_id"],
278-
"automaticFacetFilters": [{
279-
"facet":"director"
280-
}],
276+
"automaticFacetFilters": ["director"],
281277
"query": {
282278
"edits": [{
283279
"type": "remove",
@@ -633,9 +629,7 @@
633629
}],
634630
"consequence": {
635631
"params": {
636-
"automaticFacetFilters": [{
637-
"facet":"brand"
638-
}],
632+
"automaticFacetFilters": ["brand"],
639633
"query": {
640634
"remove": ["brand:", "{facet:brand}"]
641635
}
@@ -656,9 +650,7 @@
656650
}],
657651
"consequence": {
658652
"params": {
659-
"automaticFacetFilters": [{
660-
"facet":"brand"
661-
}],
653+
"automaticFacetFilters": ["brand"],
662654
"query": {
663655
"remove": ["brand:", "{facet:brand}"]
664656
}
@@ -682,9 +674,7 @@
682674
}],
683675
"consequence": {
684676
"params": {
685-
"automaticFacetFilters": [{
686-
"facet":"color"
687-
}]
677+
"automaticFacetFilters": ["color"]
688678
}
689679
}
690680
}
@@ -699,9 +689,7 @@
699689
}],
700690
"consequence": {
701691
"params": {
702-
"automaticFacetFilters": [{
703-
"facet":"color"
704-
}]
692+
"automaticFacetFilters": ["color"]
705693
}
706694
}
707695
}

0 commit comments

Comments
 (0)