def test_hybrid_search_score_modifiers_old_version_fails(self):
        """
        score_modifiers can only be set for hybrid Marqo 2.15.0 onward
        """
        # Legacy Index too old for root score_modifiers
        for index in [self.unstructured_default_text_index, self.semi_structured_text_index_2_14,
                      self.structured_text_index_2_14]:
            with self.subTest(index=type(index)):
                with self.assertRaises(core_exceptions.UnsupportedFeatureError) as e:
                    tensor_search.search(
                        config=self.config,
                        index_name=self.unstructured_default_text_index.name,
                        text="dogs",
                        search_method="HYBRID",
                        score_modifiers=ScoreModifierLists(
                            multiply_score_by=[
                                {"field_name": "mult_field_1", "weight": 1.0}
                            ],
                            add_to_score=[
                                {"field_name": "add_field_1", "weight": 1.0}
                            ]
                        ),
                    )
                self.assertIn("global score modifiers is only supported for "
                              "Marqo indexes created with Marqo 2.15.0", str(e.exception))

        score_modifiers can only be set for hybrid Marqo 2.15.0 onward
        
tests/integ_tests/tensor_search/integ_tests/test_hybrid_search.py