חיפוש Baidu

סיכום מבוסס בינה מלאכותית

The discussion is about the Baidu Search theme component for Discourse, which allows users to search Chinese sites. The component is maintained by the Discourse team and has a repository link.

To use the component, users need to install and activate it, then update the js.search.search_google and js.search.or_search_google strings by replacing ‘Google’ with ‘Baidu’ or ‘百度’. The component has some parameters references and credits to @david for finding a workaround.

Robert_Digi-Key asked about updating the component before the June deadline, and Arkshine suggested making a #feature request to set up a preferred search engine. Arkshine later found an existing plugin outlet and made a PR to add it.

:discourse2: Summary Baidu Search is specific for Chinese sites whose users cannot use the usual Google search.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-baidu-search
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

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

Credits

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!

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-11T08:19:47Z

Check documentPerform check on document:
9 לייקים

Do you know if this will component will be updated or if it will just need to be removed prior to the June deadline?

I think it would be reasonable to make a Contribute > Feature request. It seems a good idea for the admin/user to set up their preferred search engine.

Fixing the TC would require a plugin outlet. If the team is okay with it, I can make a PR to add one.

2 לייקים

There is actually an existing plugin outlet introduced recently.
I made a PR:

https://github.com/discourse/discourse-baidu-search/pull/22

2 לייקים