Course Search : What is ELASTIC_FIELD_MAPPINGS and is it required for course search to function?

127 views
Skip to first unread message

Aparna P

unread,
Jun 14, 2016, 1:20:23 AM6/14/16
to General Open edX discussion
Hi all!

For enabling course search, the documentation says to set ELASTIC_FIELD_MAPPINGS together with other fields like SEARCH_ENGINE and ENABLE_COURSEWARE_INDEX.

But we found that even if ELASTIC_FIELD_MAPPINGS is not set, course search works just fine. So the question is : is ELASTIC_FIELD_MAPPINGS obsolete or does it provide some fine tuning to the search feature?

Thanks,
Aparna

eug...@opencraft.com

unread,
Jun 28, 2016, 7:29:58 AM6/28/16
to General Open edX discussion
HI Aparna!

tl;dr: Yes, ELASTIC_FIELD_MAPPINGS provide fine tuning capabilities - you don't need to set them if you don't know what you're doing.

Details: it is used in edx-search to specify ElasticSearch mapping for an index - it allows fine tuning the way ElasticSearch indexes the data. Default mappings are less than ideal, but work. And unless you've got someone at least roughly familiar with what ElasticSearch mappings are, you don't want to change them as it might result in broken or malfunctioning search.

Regards,
Eugeny

Aparna P

unread,
Jun 30, 2016, 6:33:25 AM6/30/16
to General Open edX discussion
Thanks, Eugeny!
Reply all
Reply to author
Forward
0 new messages