def test_recommend_includeInputDocuments_success(self):
        """
        Test that the recommender includes input documents when requested
        """
        for index in [self.unstructured_text_index, self.structured_text_index]:
            with self.subTest(type=index.type):
                self._populate_index(index)

                res = self.recommender.recommend(
                    index_name=index.name,
                    documents=["1", "2"],
                    exclude_input_documents=False,
                )

                ids = [doc["_id"] for doc in res["hits"]]

                self.assertTrue({"1", "2"}.issubset(set(ids)))

        Test that the recommender includes input documents when requested
        
tests/integ_tests/core/search/test_recommender.py