lerni/bing-custom-search

Azure Cognitive Services/Search integration for Silverstripe

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

dev-master 2024-02-01 06:54 UTC

This package is auto-updated.

Last update: 2024-04-30 07:24:19 UTC


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.