def test_recommend_filterWithoutExcludeInputDocs_success(self):
        """
        Test that the recommender uses the given filter and includes input documents
        """
        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"],
                    filter='tags:(orchid)',  # only document matching is 1
                    exclude_input_documents=False,
                )

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

                self.assertEqual(ids, ['1'])

        Test that the recommender uses the given filter and includes input documents
        
tests/integ_tests/core/search/test_recommender.py