Baidu Search component

This component is specific for Chinese sites whose users cannot use the usual Google search.

:hammer_and_wrench: Github url: https://github.com/discourse/discourse-baidu-search

If you don’t know how to install themes and components read our guide How do I install a Theme or Theme Component?

After installing and activating the component remember also to update the js.search.search_google and js.search.or_search_google strings (from /admin/customize/site_texts) by replacing ‘Google’ with ‘Baidu’ or ‘百度’.

Parameters references

Since the documentation in English relating to the parameters used by Baidu is scarce, I leave here the two valid references I found on the net

Thanks to @david for finding the workaround to make the search work on a specific site even without using the Q6 parameter which doesn’t work properly with the search terms!

8 Likes