Searching and requesting information from the database can be a burdensome load for even the most optimized web server. Offloading search functionality to an external server that’s specializing in handling those searches will help speed up your WordPress site and get the best performance out of your hosting services.
We recommend the ElasticPress plugin along with ElasticPress.io to offload and host your website’s search workload. ElasticPress is a fast and flexible search engine for WordPress. The service also includes many helpful features to improve your search functionality even further, such as spellcheck and geolocation.
- Login to your WordPress admin
- Click Plugins
- Click Add New
- Search for elasticpress
- Click Install Now
- Click Activate
Find a Search Host and Generate API Credentials
The next step is to obtain a search host to offload the search functionality on. These servers are optimized by their host specifically to handle your website’s intense database queries.
In this article we’re using ElasticPress.io, which includes extra search features, such as search by metadata, spellcheck and fuzzy searching, and multisite support.
- Choose a plan that suits your needs and create an account
- You can sign up for ElasticPress.io here
- Click My Account
- Select My Subscription
- Locate the Credentials for your account
- Leave this page open for use in the next step
Connect ElasticPress Plugin to Search Hosting
- Open your WordPress admin dashboard (wp-admin)
- Click ElasticPress in the menu
- Select Settings
- Select ElasticPress.io
- Copy and paste the following credentials from your ElasticPress.io dashboard
- ElasticPress.io Host URL
- Subscription ID
- Subscription Username
- In the ElasticPress.io dashboard, click Change Token to generate a Subscription Token
- This token cannot be viewed again once you have navigated away from the page, so be sure to copy it down
- Click I Understand to confirm that any previous token in use will be invalidated
- Copy and paste the token into the ElasticPress plugin settings field called Subscription Token
- Click Save Changes
Index Your Content
- Open your WordPress admin dashboard
- Click ElasticPress
- Click Index Your Content
This process may take some time. Once it’s complete, you will be able to view settings to customize your search and view the health of your website’s search index all within the ElasticPress plugin.
NEXT STEP: Check out more tips to optimize your site