def test_hybrid_search_with_images(self):
        """
        Tests that hybrid search is accurate with images, both in query and in documents.
        Note: For unstructured, both image and link are indexed, thus the doc will have a lexical and tensor score.
        For structured, only the image is indexed, thus the doc will ONLY have a tensor score.
        """

        for index in [self.structured_default_image_index, self.semi_structured_default_image_index,
                      self.unstructured_default_image_index]:
            with self.subTest(index=index.name):
                # Add documents
                self.add_documents(
                    config=self.config,
                    add_docs_params=AddDocsParams(
                        index_name=index.name,
                        docs=[
                            {"_id": "hippo image", "image_field_1": TestImageUrls.HIPPO_REALISTIC.value},
                            {"_id": "random image", "image_field_1": TestImageUrls.IMAGE2.value},
                            {"_id": "hippo text", "text_field_1": "hippo"},
                            {"_id": "hippo text low relevance", "text_field_1": "hippo text text random"},
                            {"_id": "random text", "text_field_1": "random text"}
                        ],
                        tensor_fields=["text_field_1", "image_field_1"] \
                            if isinstance(index, UnstructuredMarqoIndex) else None
                    )
                )

                with self.subTest("disjunction text search"):
                    hybrid_res = tensor_search.search(
                        config=self.config,
                        index_name=index.name,
                        text="hippo",
                        search_method="HYBRID",
                        hybrid_parameters=HybridParameters(
                            retrievalMethod="disjunction",
                            rankingMethod="rrf",
                            verbose=True
                        ),
                        result_count=4
                    )

                    self.assertIn("hits", hybrid_res)
                    self.assertEqual(hybrid_res["hits"][0]["_id"], "hippo text")
                    self.assertEqual(hybrid_res["hits"][1]["_id"], "hippo text low relevance")

                with self.subTest("disjunction image search"):
                    hybrid_res = tensor_search.search(
                        config=self.config,
                        index_name=index.name,
                        text=TestImageUrls.HIPPO_REALISTIC.value,
                        search_method="HYBRID",
                        hybrid_parameters=HybridParameters(
                            retrievalMethod="disjunction",
                            rankingMethod="rrf",
                            verbose=True
                        ),
                        result_count=4
                    )

                    self.assertIn("hits", hybrid_res)
                    self.assertEqual(hybrid_res["hits"][0]["_id"], "hippo image")
                    self.assertEqual(hybrid_res["hits"][1]["_id"], "random image")
                    self.assertEqual(hybrid_res["hits"][2]["_id"], "hippo text")

        Tests that hybrid search is accurate with images, both in query and in documents.
        Note: For unstructured, both image and link are indexed, thus the doc will have a lexical and tensor score.
        For structured, only the image is indexed, thus the doc will ONLY have a tensor score.
        
tests/integ_tests/tensor_search/integ_tests/test_hybrid_search.py