Taken from https://github.com/algolia/docsearch/issues/181#issuecomment-301730219
Closes https://gitlab.com/gitlab-com/gitlab-docs/issues/72