diff --git a/lms/envs/common.py b/lms/envs/common.py index 2841563260..a2f1c57599 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1415,6 +1415,9 @@ ELASTIC_SEARCH_CONFIG = [ } ] +SEARCH_COURSEWARE_CONTENT_LOG_PARAMS = False + + # .. setting_name: ELASTIC_SEARCH_INDEX_PREFIX # .. setting_default: '' # .. setting_description: Specifies the prefix used when namixng elasticsearch indexes related to edx-search. diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index 5c5aa74e39..44b5446f4c 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -168,6 +168,7 @@ FEATURES['LICENSING'] = True FEATURES['ENABLE_COURSEWARE_SEARCH'] = True FEATURES['ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF'] = True SEARCH_ENGINE = 'search.elastic.ElasticSearchEngine' +SEARCH_COURSEWARE_CONTENT_LOG_PARAMS = True ELASTIC_SEARCH_CONFIG = [ { diff --git a/lms/envs/production.py b/lms/envs/production.py index c846c6d377..a50dedf906 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -771,6 +771,11 @@ SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING = ENV_TOKENS.get( SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING, ) +SEARCH_COURSEWARE_CONTENT_LOG_PARAMS = ENV_TOKENS.get( + 'SEARCH_COURSEWARE_CONTENT_LOG_PARAMS', + SEARCH_COURSEWARE_CONTENT_LOG_PARAMS, +) + # TODO: Once we have successfully upgraded to ES7, switch this back to ELASTIC_SEARCH_CONFIG. ELASTIC_SEARCH_CONFIG = ENV_TOKENS.get('ELASTIC_SEARCH_CONFIG_ES7', [{}])