def test_facets_structured_index_fails(self):
        """Verify facets fail on structured indexes"""
        with self.assertRaises(MarqoWebError) as e:
            self.client.index(self.text_index_name).search(
                "shirt",
                search_method="HYBRID",
                facets={"fields": {"color": {"type": "string"}}}
            )
        self.assertIn("Facets are only supported for unstructured indexes", str(e.exception))
Verify facets fail on structured indexes
tests/api_tests/v1/tests/api_tests/unstructured_index/test_facets.py