Merge pull request #22358 from open-craft/samuel/custom-search-filter

SE-1839 Allow overriding SEARCH_FILTER_GENERATOR
This commit is contained in:
Ned Batchelder
2020-05-11 11:58:44 -04:00
committed by GitHub

View File

@@ -705,6 +705,7 @@ if FEATURES.get('ENABLE_COURSEWARE_SEARCH') or \
FEATURES.get('ENABLE_TEAMS'):
# Use ElasticSearch as the search engine herein
SEARCH_ENGINE = "search.elastic.ElasticSearchEngine"
SEARCH_FILTER_GENERATOR = ENV_TOKENS.get('SEARCH_FILTER_GENERATOR', SEARCH_FILTER_GENERATOR)
ELASTIC_SEARCH_CONFIG = ENV_TOKENS.get('ELASTIC_SEARCH_CONFIG', [{}])