microsoft / oxa-tools

Open edX on Azure Tools
MIT License
37 stars 99 forks source link

Search results empty even though courses are present #406

Closed bhaskar8088 closed 5 years ago

bhaskar8088 commented 5 years ago

I am currently making changes to an open edx instance configured by other guys. After checking the code, I found that its master branch is "oxa/master.fic" so assuming that is installed using oxa-tools.

I am having an issue that I couldnt find any results in explore courses page also search results are empty. But the homepage shows lots of courses.

Since it didnt work, I tried making below changes in /edx/app/edxapp/edx-platform/lms/envs.common.py

 'ENABLE_COURSEWARE_SEARCH': True,
 'ENABLE_DASHBOARD_SEARCH': True,
 'ENABLE_COURSE_DISCOVERY': True,
 'COURSE_DISCOVERY_FILTERS': ["org", "language", "modes"],

Then I restarted supervisor services but still I couldnt find courses in explore courses as well as search page.

May I know if I missed something ? I am pretty sure its not a bug.

fjferdiez commented 5 years ago

All configurations usually are located on lms.env.json (for the learning management system) and cms.env.json (for the studio) at the parent folder of your edx-platform (i.e. /edx/app/edxapp) the values from that json file are read and they overwrite the ones on the environments python files, which just set up defaults in case there's a problem with the above mentioned json file.

sanjay186 commented 5 years ago

Did you reindex your courses from CMS ??? If not go to CMS and go inside the courses content on the right top you will find reindex button click that. This may work ..

bhaskar8088 commented 5 years ago

Its working now, thanks. Its just proper use of envs.