We've frequently discussed adding search but it's never made it high on the priority list. get_items has most of the machinery for doing search on xblock content (see the unit tests which pass regex's to it); however, we've not done anything for searching in assets. We are refactoring asset storage; so, it's probably not worthwhile to add anything right now, but I will pass this request onto the architect for that refactoring. HOWEVER, being open source, we'd strongly encourage you to volunteer to add search to the asset refactoring (existing proposal which may be inaccessible but will be published here soon)
There are some FEATURE switches that you'll need to set to True in order to have search working.For Studio, you'll want to enable the indexing using:ENABLE_COURSEWARE_INDEXthis exposes that button within the course structure page and allows elastic search to be populated
For LMS, you'll want to enable the search box using:ENABLE_COURSEWARE_SEARCHthis exposes the search box within the courseware tab within a course
Yes, you'll need to configure an elasticsearch instance to use, currently it is designed to use the same elasticsearch cluster as the forms service does today. If you are using devstack or fullstack then you already have this in place.
'ENABLE_COURSEWARE_INDEX': True,
'ENABLE_LIBRARY_INDEX': True,
# Default to no Search Engine
SEARCH_ENGINE = "search.elastic.ElasticSearchEngine"
ELASTIC_FIELD_MAPPINGS = {
"start_date": {
"type": "date"
}
}
# Courseware search feature
'ENABLE_COURSEWARE_SEARCH': True,
# Dashboard search feature
'ENABLE_DASHBOARD_SEARCH': True,
# Course discovery feature
'ENABLE_COURSE_DISCOVERY': True,
# Use None for the default search engine
SEARCH_ENGINE = "search.elastic.ElasticSearchEngine"
# Use LMS specific search initializer
SEARCH_INITIALIZER = "lms.lib.courseware_search.lms_search_initializer.LmsSearchInitializer"
# Use the LMS specific result processor
SEARCH_RESULT_PROCESSOR = "lms.lib.courseware_search.lms_result_processor.LmsSearchResultProcessor"
# Use the LMS specific filter generator
SEARCH_FILTER_GENERATOR = "lms.lib.courseware_search.lms_filter_generator.LmsSearchFilterGenerator"
# Override to skip enrollment start date filtering in course search
SEARCH_SKIP_ENROLLMENT_START_DATE_FILTERING = False
/edx/bin/supervisorctl restart edxapp:
/edx/bin/supervisorctl restart edxapp_worker
Try this documentation:
http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/edx_search.html
By default edx search will be installed automatically when you install the Open edX Platform. And you should just enable course indexing...
i need help to enable edx-search on mitxvm (beta-release of open edx)
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/3c224a7a-7ce4-4211-8373-04a7669b8fb8%40googlegroups.com.
ENABLE_COURSEWARE_INDEX" or "ENABLE_LIBRARY_INDEX" and i don't have "SEARCH_ENGINE" too. The same with the lms common.py file, i don't have settings for edx-search configuration.
I'm using beta-release of open edx
this is the box vm i used to install my open edx mitxvm-edx-platform-02sep13a.box
and the link of the official page is http://people.csail.mit.edu/ichuang/edx/
--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CABCzmJKLa6_KyWXBDA-ktoz25aXr2On%2BprwmSO-A4NA-%3DzSyJw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CAA6wd2%3D07VFS6ggnL_AwUpqJ9rCexZKgxOcr7esrD3tg8Q5_CQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CA9BBDF9-33DB-40AE-9A6C-1CA4EE3A87A0%40gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/24BC9BFC-653A-4D4A-9B18-0AEFB9B17D45%40mit.edu.