def test_facets_with_filter_exclusions(self):
        """Test facets with filter term exclusions"""
        res = self.client.index(self.unstructured_text_index_name).search(
            "shirt",
            search_method="HYBRID",
            facets={
                "fields": {
                    "color": {
                        "type": "string",
                        "excludeTerms": ["price:[100 TO 200]"]
                    }
                }
            },
            filter_string="price:[100 TO 200]"
        )
        self.assertIn("facets", res)
        self.assertIn("color", res["facets"])
Test facets with filter term exclusions
tests/api_tests/v1/tests/api_tests/unstructured_index/test_facets.py