A plugin that uses the Bing Search API to replace the default search functionality.
使用Bing Search API替换默认搜索功能的插件。 p>
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调整才能在自定义模板上获得所需的样式。 p>
If you have any enquiries about custom integration of this plugin please contact us as team@askewbrook.com
如果您对此插件的自定义集成有任何疑问,请通过team@askewbrook.com与我们联系 p>
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 。 p>
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天,在此之后,您需要付费才能继续使用该服务。 p>
Custom Search Functionality
自定义搜索功能 h4>
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
。 p>
You will then require the customconfig
code that is generated upon receiving your API endpoint.
然后,您将需要在接收到API终结点时生成的 customconfig code>代码。 p>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 p>
of which the code you require to is the customconfig=########
.
其中需要的代码是 customconfig = ######### code>。place this code into the box provided in the settings and turn on the custom search functionality.
将此代码放入设置中提供的框中,然后打开自定义搜索功能。 p>