From 21c5fcdf0c747286b05d6866b9cb5603b3fcda1c Mon Sep 17 00:00:00 2001 From: Damien Couchez Date: Tue, 30 Oct 2018 11:15:16 +0100 Subject: [PATCH 1/2] Remove color facet query rule --- app/code/community/Algolia/Algoliasearch/etc/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Algolia/Algoliasearch/etc/config.xml b/app/code/community/Algolia/Algoliasearch/etc/config.xml index 1ae66ed9..856d0346 100644 --- a/app/code/community/Algolia/Algoliasearch/etc/config.xml +++ b/app/code/community/Algolia/Algoliasearch/etc/config.xml @@ -200,7 +200,7 @@ 1 .main - 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";}} + 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";}} 10 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";}} 1 From c2b6f6cc845c81dbdd2acfbf5e9440648d164836 Mon Sep 17 00:00:00 2001 From: Damien Couchez Date: Tue, 30 Oct 2018 11:26:21 +0100 Subject: [PATCH 2/2] Remove color facet query rule --- tests/ConfigTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index a4af0958..033defd3 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -76,7 +76,7 @@ public function testQueryRules() $page++; } while (($page * $hitsPerPage) < $fetchedQueryRules['nbHits']); - $this->assertEquals(1, count($matchedRules)); + $this->assertEquals(0, count($matchedRules)); } public function testAutomaticSetOfCategoriesFacet()