feat: add settings for detailed search logging (default off)
devstack on, production load from environment
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 = [
|
||||
{
|
||||
|
||||
@@ -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', [{}])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user