def test_facets_non_hybrid_search_fails(self):
        """Verify facets only work with HYBRID search method"""
        for search_method in ["lexical", "tensor"]:
            with self.assertRaises(MarqoWebError) as e:
                self.client.index(self.unstructured_text_index_name).search(
                    "shirt",
                    search_method=search_method,
                    facets={"fields": {"color": {"type": "string"}}}
                )
            self.assertIn("Facets can only be provided for 'HYBRID' search", str(e.exception))
Verify facets only work with HYBRID search method
tests/api_tests/v1/tests/api_tests/unstructured_index/test_facets.py