Ichaber\SSSwiftype\Service\SwiftypeCrawler
Credit: [Bernard Hamlin](https://github.com/blueo) and [Mojmir Fendek](https://github.com/mfendeksilverstripe)
Class SwiftypeCrawler
Synopsis
class SwiftypeCrawler
{
- // constants
- const SWIFTYPE_API = 'https://api.swiftype.com/api/v1/engines/%s/domains/%s/crawl_url.json';
- // methods
- public void __construct()
- public bool send()
- public array getMessages()
- protected LoggerInterface getLogger()
- protected void addMessage()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Constants
Name | Value |
---|---|
SWIFTYPE_API | 'https://api.swiftype.com/api/v1/engines/%s/domains/%s/crawl_url.json' |
Members
private
- $client — GuzzleHttp\Client
- $logger — Psr\Log\LoggerInterface
- $messages — array
Methods
protected
public
- __construct() — Crawler constructor.
- getMessages()
- send() — Crawls a page based on the locale