feat: add settings for detailed search logging (default off)

devstack on, production load from environment
This commit is contained in:
Andy Shultz
2023-11-16 08:48:11 -05:00
parent c6b36a8558
commit 3da6578e9b
3 changed files with 9 additions and 0 deletions

View File

@@ -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.

View File

@@ -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 = [
{

View File

@@ -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', [{}])