This is a client module which connects to Swiftype API for sending configuration, data model and fetching.
The example below uses the 'Swiftype' client as the 3rd parameter on the createSearch() method.
// Controller method using the module's interface $properties = $this->createSearch( $request->getVar('Keywords'), 'Properties', 'Swiftype' ); $properties->filter([ 'AvailableStart:LessThanOrEqual' => $startDate, 'AvailableEnd:GreaterThanOrEqual' => $endDate ]); return ['Results' =>$properties->fetch()]; // ArrayList
composer require marczhermo/swiftype-search:^0.1
composer require marczhermo/swiftype-search
This module needs the following packages:
"marczhermo/search-list": "^0.1", "guzzlehttp/ringphp": "^1.1", "silverstripe/queuedjobs": "^2"
This library follows Semver. According to Semver,
you will be able to upgrade to any minor or patch version of this library
without any breaking changes to the public API. Semver also requires that
we clearly define the public API for this library.
All methods, with
public visibility, are part of the public API. All
other methods are not part of the public API. Where possible, we'll try
protected methods backwards-compatible in minor/patch versions,
but if you're overriding methods then please test your work before upgrading.
Please create an issue
for any bugs you've found, or features you're missing.
This module is released under the BSD 3-Clause License