Commit dd134c90 by Renzo Lucioni

Tune Elasticsearch boost config

Reward course runs with enrollable, paid seats. Penalize those without them. Slightly increase boost given to MicroMasters and Professional Certificate programs. Tweak self-paced and enrollable boosts to match. Taken together, this modified boost configuration yields search results which tend to promote course runs with enrollable, paid seats above those without them.

LEARNER-1374
parent 87aecfb0
...@@ -36,7 +36,7 @@ class SimpleQuerySearchBackendMixin(object): ...@@ -36,7 +36,7 @@ class SimpleQuerySearchBackendMixin(object):
'auto_generate_phrase_queries': True, 'auto_generate_phrase_queries': True,
} }
# https://www.elastic.co/guide/en/elasticsearch/reference/1.7/query-dsl-function-score-query.html # https://www.elastic.co/guide/en/elasticsearch/reference/1.5/query-dsl-function-score-query.html
function_score_config = get_elasticsearch_boost_config()['function_score'] function_score_config = get_elasticsearch_boost_config()['function_score']
function_score_config['query'] = { function_score_config['query'] = {
'query_string': simple_query 'query_string': simple_query
......
...@@ -7,7 +7,6 @@ LOGGING['handlers']['local'] = { ...@@ -7,7 +7,6 @@ LOGGING['handlers']['local'] = {
'class': 'logging.NullHandler', 'class': 'logging.NullHandler',
} }
# Determine which requests should render Django Debug Toolbar # Determine which requests should render Django Debug Toolbar
INTERNAL_IPS = ('127.0.0.1',) INTERNAL_IPS = ('127.0.0.1',)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment