The Swiftype WordPress Plugin replaces WordPress's default search with a better search engine that is fully customizable via the Swiftype dashboard.
- Go to http://swiftype.com and sign up for a free Swiftype account. (Be sure to validate your account via the confirmation email we send.)
- After logging in to Swiftype, go to the Account Settings screen and get your API key.
- Install the Swiftype Search Wordpress plugin in your Wordpress dashboard.
- Activate the plugin through the 'Plugins' menu in WordPress.
- Go to the Swiftype Search plugin page and enter your Swiftype API key on the first screen.
- Name your search engine, following the instructions on the screen.
- Build your search index by clicking the "Synchronize with Swiftype" button.
- See the Demo video for additional details, or email [email protected] if you are having trouble.
For additional information on how to use and extend the plugin, please visit the plugin notes page.
To run the unit tests locally, first install the WordPress unit testing framework and a local copy of WordPress by running scripts/install-wp-tests.sh <db name> <db user name> <db password>
.
Next, run the tests with scripts/run_tests.sh
. This runs the non-Multisite tests against the version of WordPress you installed in the previous commands.
When new commits are pushed, the tests will be run automatically on Swiftype's CI server using several different versions of PHP and WordPress (see scripts/ci_build.sh
). We are working on making these test runs public.
- Find next version using
git tag --list
- Change version number in
README.txt
(1 occurrence) andswiftype.php
(2 occurrences) - Update changelog in
README.txt
- Commit updates
git commit -am "bump version"
git push
- Tag version
git tag v1.x.yz
git push --tags
- Publish to WP
./scripts/publish.sh 1.x.yz
There is a pre-commit hook to automatically concatenate and minify JavaScript every time you commit. This is done with Grunt.
- Install
grunt-cli
(npm install -g grunt-cli
) - Test by running
grunt build
. - Install the pre-commit hook:
ln -s ../../scripts/pre-commit .git/hooks/pre-commit