def test_hybrid_search_same_retrieval_and_ranking_matches_original_method(self):
        """
        Tests that hybrid search with:
        retrievalMethod = "lexical", rankingMethod = "lexical" and
        retrievalMethod = "tensor", rankingMethod = "tensor"

        Results must be the same as lexical search and tensor search respectively.
        """

        for index_name in [self.text_index_name, self.unstructured_text_index_name]:
            with self.subTest(index=index_name):
                self.client.index(index_name).add_documents(
                    self.docs_list,
                    tensor_fields=["text_field_1", "text_field_2", "text_field_3"] \
                        if "unstructured" in index_name else None
                )

                test_cases = [
                    ("lexical", "lexical"),
                    ("tensor", "tensor")
                ]

                for retrievalMethod, rankingMethod in test_cases:
                    with self.subTest(retrieval=retrievalMethod, ranking=rankingMethod):
                        hybrid_res = self.client.index(index_name).search(
                            "dogs",
                            search_method="HYBRID",
                            hybrid_parameters={
                                "retrievalMethod": retrievalMethod,
                                "rankingMethod": rankingMethod
                            },
                            limit=10
                        )

                        base_res = self.client.index(index_name).search(
                            "dogs",
                            search_method=retrievalMethod,     # will be either lexical or tensor
                            limit=10
                        )

                        self.assertEqual(len(hybrid_res["hits"]), len(base_res["hits"]))
                        for i in range(len(hybrid_res["hits"])):
                            self.assertEqual(hybrid_res["hits"][i]["_id"], base_res["hits"][i]["_id"])

        Tests that hybrid search with:
        retrievalMethod = "lexical", rankingMethod = "lexical" and
        retrievalMethod = "tensor", rankingMethod = "tensor"

        Results must be the same as lexical search and tensor search respectively.
        
tests/api_tests/v1/tests/api_tests/structured_index/test_hybrid_search.py