Hi all,
I’m trying to use edx-search in an instance of Koa native, so I configured settings in /edx/app/edxapp/edx-platform/lms/envs/common.py file as follows:
'ENABLE_COURSE_DISCOVERY': True,
'ENABLE_COURSEWARE_SEARCH': True,
'ENABLE_DASHBOARD_SEARCH': True,
...
'COURSE_DISCOVERY_FILTERS': ["org", "language", "modes"], #(overwriting default)
'COURSE_DISCOVERY_MEANINGS': {
"org": {
"name": "Organization"
},
"modes": {
"name": "Course Type",
"terms": {
"honor": "Honor",
"verified": "Verified"
}
},
"language": "en"
},
SEARCH_ENGINE = None #(tested changing it to "search.elastic.ElasticSearchEngine" with same result as well)
And configured settings in /edx/app/edxapp/edx-platform/cms/envs/common.py file as follows:
ENABLE_COURSEWARE_INDEX = True
ENABLE_LIBRARY_INDEX = True
SEARCH_ENGINE = None #(tested changing it to "search.elastic.ElasticSearchEngine" with same result as well)
Then I restarted service and got a search bar in my_lms_site/dashboard and my_lms_site/courses pages, but it does not find any course by name:
-
In dashboard page, I am able to see all courses (four mock courses created for testing), but when I search using a course name, or one word expecting one or more results, it shows the messages "0 results found for “some_course_name” and “Sorry, no results were found.”
-
In courses page, I am not able to see any course and search result is "We couldn’t find any results for “some_course_name”. The “Refine Your Search” panel does not show any option.
In addition, I had this observations:
-
assumed that edx-search is installed because section 4.7.4 states it (4.7. Enabling Open edX Search — Installing, Configuring, and Running the Open edX Platform: Koa Release documentation), don’t know how to check edx search installation.
-
checked that port 9200 is open for elasticsearch, and noted that http://localhost:9200 URL shows a JSON that includes status 200.
-
entered to discovery service at http://localhost:18381 and cannot click an example to populate query field; if I copy and paste one of the examples and press submit, the page appears to be reloaded without changes. I think that this behavior could be related somehow to this issue.
-
detected changes in LMS only. In Studio, nothing seems to change.
Is there something important I am missing? This is my first topic. Thanks in advance if you may guide me to a better understanding and feedback.