def test_combination_score_modifiers(self):
        """Test combination of standard score modifier fields and maps"""
        for index_name in [self.structured_index_name, self.unstructured_index_name]:
            with self.subTest(index_name=index_name):
                docs = [
                    {"_id": "1", "text_field": "test", "double_score_mods": 2.0, "map_score_mods": {"a": 1.5}},
                    {"_id": "2", "text_field": "test", "long_score_mods": 3, "map_score_mods_int": {"b": 2}},
                    {"_id": "3", "text_field": "test"},
                ]
                tensor_fields = ["text_field"] if "unstr" in index_name else None
                self.client.index(index_name).add_documents(documents=docs, tensor_fields=tensor_fields)

                res = self.client.index(index_name).search(
                    q="",
                    score_modifiers={
                        "multiply_score_by": [
                            {"field_name": "double_score_mods", "weight": 1},
                            {"field_name": "map_score_mods.a", "weight": 2},
                        ],
                        "add_to_score": [
                            {"field_name": "long_score_mods", "weight": 1},
                            {"field_name": "map_score_mods_int.b", "weight": 1},
                        ]
                    }
                )

                # Expected score calculation:
                # Doc 1: base_score * 2.0 * (1.5 * 2) = base_score * 6 
                # Doc 2: base_score + (3 * 1) + (2 * 1) = base_score + 5
                base_score = 0.845687427
                expected_score_doc1 = base_score * 6
                expected_score_doc2 = base_score + 5

                tolerance = 0.1
                self.assertTrue(abs(res["hits"][0]["_score"] - expected_score_doc2) <= tolerance)
                self.assertTrue(abs(res["hits"][1]["_score"] - expected_score_doc1) <= tolerance)
Test combination of standard score modifier fields and maps
tests/api_tests/v1/tests/api_tests/test_dict_score_modifiers.py