lerni/bing-custom-search
Composer 安装命令:
composer require lerni/bing-custom-search
包简介
Azure Cognitive Services/Search integration for Silverstripe
README 文档
README
Work in progress but not much is expected.
Azure Cognitive Services/Search integration for Silverstripe
This is a simple module created for Bing Custom Search that now runs with Azure Cognitive Services/Search.
Requirements
- silverstripe/cms ^4.0 || ^5.0
Installation
Composer is the recommended method for installing Silverstripe modules.
require lerni/bing-custom-search
How to use
Create a Bing Custom Search Config (https://www.customsearch.ai/) to set up a config and get an Access Key (https://portal.azure.com/#create/Microsoft.BingCustomSearch). You can set these in the yml-config or via the .env file (AZURE_COGNITIVE_SEARCH_KEY, AZURE_COGNITIVE_SEARCH_CUSTOMCONFIG). Search results are meant to be loaded via htmX/Ajax and therefore HTML is returned. data-hx- Form attributes are set, so you just need to load htmx.js in template.
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2024-01-31