def test_hybrid_search_unstructured_with_searchable_attributes_fails(self):
        """
        Test that hybrid search with legacy unstructured index and searchable attributes fails.
        """

        with self.assertRaises(core_exceptions.UnsupportedFeatureError) as e:
            tensor_search.search(
                config=self.config,
                index_name=self.unstructured_default_text_index.name,
                text="dogs",
                search_method="HYBRID",
                hybrid_parameters=HybridParameters(
                    retrievalMethod=RetrievalMethod.Disjunction,
                    rankingMethod=RankingMethod.RRF,
                    searchableAttributesLexical=["text_field_1"]
                )
            )
        self.assertIn("does not support `searchableAttributesTensor` or `searchableAttributesLexical`",
                      str(e.exception))

        with self.assertRaises(core_exceptions.UnsupportedFeatureError) as e:
            tensor_search.search(
                config=self.config,
                index_name=self.unstructured_default_text_index.name,
                text="dogs",
                search_method="HYBRID",
                hybrid_parameters=HybridParameters(
                    retrievalMethod=RetrievalMethod.Tensor,
                    rankingMethod=RankingMethod.Tensor,
                    searchableAttributesTensor=["text_field_1"]
                )
            )
        self.assertIn("does not support `searchableAttributesTensor` or `searchableAttributesLexical`",
                      str(e.exception))

        Test that hybrid search with legacy unstructured index and searchable attributes fails.
        
tests/integ_tests/tensor_search/integ_tests/test_hybrid_search.py