Open edx bitnami search option problem

579 views
Skip to first unread message

Mohamed Ettayeb

unread,
Jul 14, 2016, 10:53:56 AM7/14/16
to General Open edX discussion
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 ??

apollinaire samiey

unread,
Jul 21, 2016, 1:57:15 PM7/21/16
to General Open edX discussion

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


fatma sarhan

unread,
Nov 28, 2016, 7:41:37 AM11/28/16
to General Open edX discussion
Reply all
Reply to author
Forward
0 new messages