def test_different_attributes_searched_and_boosted(self):
        """An error should be raised if the user tries to
        boost a field which is not being searched.
        """
        q = "What is the best outfit to wear on the moon?"

        with self.assertRaises(InvalidArgError) as ctx:
            res_boosted = tensor_search.search(
                config=self.config, index_name=self.index_name_1, text=q,
                searchable_attributes=['Description'], boost={'Title': [0.5, 1]}
            )

        self.assertTrue('Title' in str(ctx.exception))
An error should be raised if the user tries to
        boost a field which is not being searched.
        
tests/integ_tests/tensor_search/test_boost_field_scores.py