[wordpress插件] Bing Search API Integration必应Search API集成

wordpress 插件 文章 2020-01-24 05:40 518 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

A plugin that uses the Bing Search API to replace the default search functionality.

使用Bing Search API替换默认搜索功能的插件。

This plugin works out of the box for wordpress default templates, It may require css tweaks to get the desired styling on custom templates.

此插件可直接用于Wordpress默认模板,它可能需要css调整才能在自定义模板上获得所需的样式。

If you have any enquiries about custom integration of this plugin please contact us as team@askewbrook.com

如果您对此插件的自定义集成有任何疑问,请通过team@askewbrook.com与我们联系

Note: This plugin requires a Bing Cognitive Services API key that can be obtained at https://www.microsoft.com/cognitive-services/en-us/apis.

“ rel =” nofollow“> https://www.microsoft.com/cognitive-services/zh-CN/apis 。

Upon signing up your key will be valid for 90 days, upon which you will need to pay for a subscription to continue using the service.

注册密钥后,有效期为90天,在此之后,您需要付费才能继续使用该服务。

Custom Search Functionality

自定义搜索功能

To use the new custom search functionality provided by bing, you will need to create a new api key & endpoint at https://customsearch

要使用bing提供的新的自定义搜索功能,您需要在 https:// customsearch处创建新的api键和终结点

.ai.

.ai 。

You will then require the customconfig code that is generated upon receiving your API endpoint.

然后,您将需要在接收到API终结点时生成的 customconfig 代码。

An example of a API endpoint would be:
    

API端点的示例为:
    

https://api.cognitive.microsoft.com/bingcustomsearch/v5.0/search?q=microsoft&customconfig=1570678669&responseFilter=Webpages&mkt=en-us&safesearch=Moderate

https://api.cognitive.microsoft.com/bingcustomsearch/v5.0/search?q=microsoft&customconfig=1570678669&responseFilter=Webpages&mkt=en-us&safesearch=Moderate

of which the code you require to is the customconfig=########.

其中需要的代码是 customconfig = #########

place this code into the box provided in the settings and turn on the custom search functionality.

将此代码放入设置中提供的框中,然后打开自定义搜索功能。

安装步骤

Unpack and install in your plugin directory.

解压并安装在您的插件目录中。

This will create a new search file that will be loaded instead of your theme’s existing search.php

这将创建一个新的搜索文件,该文件将代替您主题的现有search.php 加载。

下载地址

https://downloads.wordpress.org/plugin/abbs-bing-search.0.3.3.zip

https://downloads.wordpress.org/plugin/abbs-bing-search.0.3.3.zip

-EOF-

AI助手支持GPT4.0