def test_facets_validation(self):
        """Test that facets are only allowed for hybrid search."""
        facets = FacetsParameters(
            fields={"category": FieldFacetsConfiguration(type="string")}
        )
        
        # Should fail for tensor search
        with self.assertRaises(ValidationError) as cm:
            SearchQuery(
                q="test",
                searchMethod=SearchMethod.TENSOR,
                facets=facets
            )
        self.assertIn("Facets can only be provided for 'HYBRID' search", str(cm.exception))
Test that facets are only allowed for hybrid search.
tests/unit_tests/marqo/tensor_search/test_api_models.py