def test_search_query_rerank_depth_fails_if_not_hybrid_search_rrf(self):
        """
        Tests that creating a search query with rerank_depth fails if not using
        hybrid search with the RRF rankingMethod.
        """
        # TODO: Remove this test when rerank_depth is supported for tensor, lexical, tensor/lexical, lexical/tensor search.

        # Non-hybrid search
        for search_method in [SearchMethod.LEXICAL]:
            with self.assertRaises(ValueError) as e:
                _ = SearchQuery(q="test", searchMethod=search_method, rerankDepth=5)
            self.assertIn("not supported for 'LEXICAL' search method", str(e.exception))

        # Hybrid search with non-RRF rankingMethod
        for retrieval_method, ranking_method in [
            (RetrievalMethod.Lexical, RankingMethod.Lexical),
            (RetrievalMethod.Tensor, RankingMethod.Tensor),
            (RetrievalMethod.Lexical, RankingMethod.Tensor),
            (RetrievalMethod.Tensor, RankingMethod.Lexical)
        ]:
            with self.assertRaises(ValueError) as e:
                _ = SearchQuery(
                    q="test", rerankDepth=5,
                    searchMethod=SearchMethod.HYBRID,
                    hybridParameters=HybridParameters(
                        retrievalMethod=retrieval_method,
                        rankingMethod=ranking_method
                    )
                )
            self.assertIn("only supported for 'HYBRID' search with the 'RRF' rankingMethod", str(e.exception))

        Tests that creating a search query with rerank_depth fails if not using
        hybrid search with the RRF rankingMethod.
        
tests/integ_tests/tensor_search/models/test_api_models.py