Creating Program: Not courses found

Hi everybody:

Im trying to create a program in the Discovery Service, but im getting no result when trying to add a course.

Can anybody pease help me?

PS: I have a course named test.

I think it may be something related to ElasticSearch because when trying to execute the Discovery Service`s test queries the system returns nothing and the elasticsearch.log shows this:

org.elasticsearch.search.SearchParseException: [catalog_20200609_212447][0]: from[-1],size[-1]: Parse Failure [Failed to parse source

You have to create course_run, after that the course will appear in the filed:

sudo -u discovery -Hs
source ~/discovery_env
/edx/bin/manage.discovery refresh_course_metadata

This command will generate course_run for your courses, then it will work!

1 Like