def test_double_score_modifier(self):
        """
        Test that adding to score works for a double score modifier.
        """
        for index in [self.structured_default_text_index]:
            with self.subTest(index=index.type):
                # Add documents
                res = self.add_documents(
                    config=self.config,
                    add_docs_params=AddDocsParams(
                        index_name=index.name,
                        docs=[
                            {"_id": "1", "text_field": "a photo of a cat", "double_score_mods": 0.5 * 1 ** 39},
                            {"_id": "2", "text_field": "a photo of a cat", "double_score_mods": 4.5 * 1 ** 39},
                            {"_id": "3", "text_field": "a photo of a cat", "double_score_mods": 5.5 * 1 ** 39},
                            {"_id": "4", "text_field": "a photo of a cat"}
                        ]
                    )
                )
                # Search with score modifier
                # 0.5 + 5.5 * 2 = 11.5
                score_modifier = ScoreModifierLists(**{"add_to_score": [{"field_name": "double_score_mods", "weight": 2}]})
                res = tensor_search.search(
                    index_name=index.name, config=self.config, text="",
                    score_modifiers=score_modifier,
                    result_count=10
                )
                # Get the score of the first result and divide by 1**39
                score_of_first_result = res["hits"][0]["_score"] / 1 ** 39
                # Assert that the first result has _id "3" and 11 <= score <= 12
                self.assertEqual(res["hits"][0]["_id"], "3")
                self.assertTrue(11 <= score_of_first_result <= 12)

        Test that adding to score works for a double score modifier.
        
tests/integ_tests/tensor_search/integ_tests/test_dict_score_modifiers.py