Hello Mohamed,
i used this setting bellow and the search slide bar appear propelythe same
as de find courses buttom but when i tried to find a course or all courses
the systeme told me i couldn't find any result from my search.
I just replaced the "SEARCH_SKIP_ENROLLMENT_START_DATE_FILTERING = False"
flag by turning False to True and my problem was resolved but with that,
you will find all courses even if you don't set enrollment start and end
date. So if you finaly find the solution to find only courses whose
enrollment start end end date are set please send me an email
My problem now is how to add a custom search filter to my Refine search
catalog. If you have an idea please contact me, thanks!
/edx/app/edxapp/edx-platform/cms/envs/common.py
'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"
}
}
/edx/app/edxapp/edx-platform/lms/envs/common.py
# 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 //here you must put
"True" if not you can't find any course
Le jeudi 14 juillet 2016 14:53:56 UTC, Mohamed Ettayeb a écrit :
>
> Hello ,
>
> im working with open edx bitnami version... everything works well till i
> want to activate the edx searching course option ..
> i show up the search box but when i put a name of course and do the search
> it tells me that there is no course with that name.... :/
>
> changes maked by me :
>
> # Courseware search feature
> 'ENABLE_COURSEWARE_SEARCH': True,
>
> # Dashboard search feature
> 'ENABLE_DASHBOARD_SEARCH': True,
>
>
> # Use None for the default search engine
> SEARCH_ENGINE = None
> # 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"
>
>
>
>
> =====
> thats it... please anyone have an idea ??
>
--
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/a2ca460f-1e8f-4c35-9159-1264715563f2%40googlegroups.com.