Skip to content

Commit d5b64d6

Browse files
authored
Remove color facet query rule (#1072)
* Remove color facet query rule
1 parent 5cb22d3 commit d5b64d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/community/Algolia/Algoliasearch/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
<instant>
201201
<replace_categories>1</replace_categories>
202202
<instant_selector>.main</instant_selector>
203-
<facets>a:3:{s:18:"_1432907948596_596";a:5:{s:9:"attribute";s:5:"price";s:4:"type";s:6:"slider";s:5:"label";s:5:"Price";s:10:"searchable";s:1:"2";s:11:"create_rule";s:1:"2";}s:18:"_1432907963376_376";a:5:{s:9:"attribute";s:10:"categories";s:4:"type";s:11:"conjunctive";s:5:"label";s:10:"Categories";s:10:"searchable";s:1:"2";s:11:"create_rule";s:1:"2";}s:17:"_1447846054032_32";a:5:{s:9:"attribute";s:5:"color";s:4:"type";s:11:"disjunctive";s:5:"label";s:6:"Colors";s:10:"searchable";s:1:"1";s:11:"create_rule";s:1:"1";}}</facets>
203+
<facets>a:3:{s:18:"_1432907948596_596";a:5:{s:9:"attribute";s:5:"price";s:4:"type";s:6:"slider";s:5:"label";s:5:"Price";s:10:"searchable";s:1:"2";s:11:"create_rule";s:1:"2";}s:18:"_1432907963376_376";a:5:{s:9:"attribute";s:10:"categories";s:4:"type";s:11:"conjunctive";s:5:"label";s:10:"Categories";s:10:"searchable";s:1:"2";s:11:"create_rule";s:1:"2";}s:17:"_1447846054032_32";a:5:{s:9:"attribute";s:5:"color";s:4:"type";s:11:"disjunctive";s:5:"label";s:6:"Colors";s:10:"searchable";s:1:"1";s:11:"create_rule";s:1:"2";}}</facets>
204204
<max_values_per_facet>10</max_values_per_facet>
205205
<sorts>a:3:{s:18:"_1432908018844_844";a:3:{s:9:"attribute";s:5:"price";s:4:"sort";s:3:"asc";s:5:"label";s:12:"Lowest price";}s:18:"_1432908022539_539";a:3:{s:9:"attribute";s:5:"price";s:4:"sort";s:4:"desc";s:5:"label";s:13:"Highest price";}s:18:"_1433768597454_454";a:3:{s:9:"attribute";s:10:"created_at";s:4:"sort";s:4:"desc";s:5:"label";s:12:"Newest first";}}</sorts>
206206
<add_to_cart_enable>1</add_to_cart_enable>

tests/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testQueryRules()
7676
$page++;
7777
} while (($page * $hitsPerPage) < $fetchedQueryRules['nbHits']);
7878

79-
$this->assertEquals(1, count($matchedRules));
79+
$this->assertEquals(0, count($matchedRules));
8080
}
8181

8282
public function testAutomaticSetOfCategoriesFacet()

0 commit comments

Comments
 (0)