def test_hybrid_search_structured_invalid_fields_fails(self):
        """
        If searching with HYBRID, searchableAttributesLexical must only have lexical fields, and
        searchableAttributesTensor must only have tensor fields.
        """
        # Non-lexical field
        test_cases = [
            ("disjunction", "rrf"),
            ("lexical", "lexical"),
            ("lexical", "tensor")
        ]

        for retrievalMethod, rankingMethod in test_cases:
            with self.subTest(retrieval=retrievalMethod, ranking=rankingMethod):
                with self.assertRaises(MarqoWebError) as e:
                    self.client.index(self.text_index_name).search(
                        "dogs",
                        search_method="HYBRID",
                        hybrid_parameters={
                            "retrievalMethod":retrievalMethod,
                            "rankingMethod":rankingMethod,
                            "searchableAttributesLexical":["text_field_1", "add_field_1"]
                        }
                    )
                self.assertIn("has no lexically searchable field add_field_1", str(e.exception))

        # Non-tensor field
        test_cases = [
            ("disjunction", "rrf"),
            ("tensor", "tensor"),
            ("tensor", "lexical")
        ]
        for retrievalMethod, rankingMethod in test_cases:
            with self.subTest(retrieval=retrievalMethod, ranking=rankingMethod):
                with self.assertRaises(MarqoWebError) as e:
                    self.client.index(self.text_index_name).search(
                        "dogs",
                        search_method="HYBRID",
                        hybrid_parameters={
                            "retrievalMethod": retrievalMethod,
                            "rankingMethod": rankingMethod,
                            "searchableAttributesTensor": ["mult_field_1", "text_field_1"]
                        }
                    )
                self.assertIn("has no tensor field mult_field_1", str(e.exception))

        If searching with HYBRID, searchableAttributesLexical must only have lexical fields, and
        searchableAttributesTensor must only have tensor fields.
        
tests/api_tests/v1/tests/api_tests/structured_index/test_hybrid_search.py