Using Elasticsearch with the ElasticPress plugin, you can significantly improve website search speed and quality if your website runs WordPress/WooCommerce.
ElasticPress Plugin: How to Use Elasticsearch with WordPress & WooCommerce on a PHP Elasticsearch Host
About the Potentially Slow Default WordPress & WooCommerce Search Engine
The default search can be very slow and if you are trying to query a number of posts can take forever to return any relevant information. Having a fast and relevant search on your site will help visitors and customers find what they are looking for.
How to Use Elasticsearch on Managed WordPress and Managed WooCommerce Sites
Elasticsearch Host — What is Elasticsearch?
Elasticsearch is an open source, broadly distributed search engine capable of improving the speed and scalability of search for enterprise-grade websites.
Built on Apache Lucene and developed in Java, Elasticsearch is a very powerful distributed, open-source search and analytics engine.
With Elasticsearch you can store, search, and analyze huge volumes of data in near real-time and give back answers in milliseconds by searching on indices rather than text directly.
Elasticsearch’s primary uses include website search, application search, enterprise search, logging and log analytics, security and business analytics, and infrastructure metrics and container monitoring. Elasticsearch continues to grow in popularity and is the search solution for the majority of websites we use on the Internet.
Why Use Elasticsearch?
Elasticsearch is very fast, so if search performance is required for your enterprise or website, it is a leading solution to consider. Because is built on top of Apache Lucene, a high-performance text search engine library written in Java, it excels at full-text search.
Elasticsearch is also a near real-time search platform, in that the delay from the time a document is indexed until it becomes searchable is very short — typically a second or less.
lasticsearch Solutions on the Nexcess Cloud
What are Nexcess Cloud Containers?
are units of software that can be added to your cloud solution to expand performance, functionality, and management. Containers are lightweight, secure, and external instances that will not take resources from your main cloud solution.
Elasticsearch & Ecommerce Websites on the Nexcess Cloud
Elasticsearch provides an easy, fast, and scalable alternative for merchants looking to improve product search. It quickly indexes an online store’s entire catalog to provide fast and accurate search experiences.
Activate and quick installation and configuration the plugin for /All indexing is automatic, allowing your customers near-instant access to the benefits of improved search. with just a few clicks in your
excess Elasticsearch Container Plans by Size & Resources Included: CPU, RAM & GBs of Storage
Bluehost offers monthly rates for adding on the Elasticsearch Capability starting at $50 a month.
Cloudways offers monthly rates for adding on the Elasticsearch Capability starting at $70 a month.
Kinsta offers monthly rates for adding on the Elasticsearch Capability starting at $100 a month.
Pagely offers the Elasticsearch Capability if you sign up for a $1,000 a month plan.
How to Use Elasticsearch: Enabling Elasticsearch for WordPress/WooCommerce with the ElasticPress Plugin
The Endpoint (host) and Port number can be found from the Containers Tab in the Nexcess Portal. That information will need to be added to the site’s wp-config.php file.
An example of the Elasticsearch host information and Port number are given below:
/** ElasticPress */ define( 'EP_HOST', 'http://cg-1181-elasticsearch.us-midwest-1.nxcli.net:27059' );
You will need the change the host URL and the Port based on the information shown in the Nexcess Portal.
Site content can be indexed from the ElasticPress settings in the wp-admin dashboard.
WooCommerce settings will be defaulted enabled to index WooCommerce content on the site.
Having a number of product posts or posts will take a while to index, which is why on those sites it is worth running the index using the appropriate . Below are examples of the various WP-CLI commands related to the plugin that you will want to use.
To install and activate the ElasticPress plugin run:
wp plugin install elasticpress --activate
To index and setup ElasticPress plugin run:
wp elasticpress index --setup
Once all of the content has been indexed this is what you will see in the terminal:
Number of posts indexed: 15463 Total time elapsed: 465.652 Success: Done!
To index and setup ElasticPress plugin to include posts and products:
wp elasticpress index --setup --post-type="products,posts"
To delete the existing index in Elasticsearch from the site run:
wp elasticpress delete-index
To get the status of ElasticPress run:
wp elasticpress status
To get the stats of ElasticPress run:
wp elasticpress stats
Which will return a response similar to the following example.
[a134d331@cloudhost-139961 public_html]$ wp elasticpress stats ====== Stats for: 3b1012aedenxclinet-post-1 ====== Documents: 15463 Index Size: 290.31 MB Index Size (including replicas): 290.31 MB ====== End Stats ======
Also, from within the wp-admin dashboard on your site, you can see the index health of Elasticsearch directly in ElasticPress by navigating to the following option:
ElasticPress > Index Health
Note: The Autosuggest Feature in ElasticPress due to how the endpoint needs to work may not work on the site.
Conclusion: How to Use Elasticsearch on Managed WordPress and Managed WooCommerce Sites with Nexcess as Your Elasticsearch Host
A used with will improve the search on your site and well as help customers and visitors be able to find what they are looking for. Performance is king on the Internet so why not enhance your site search speeds?
Our can help you set up and configure ElasticPress if you ever get stuck along the way. Outstanding performance combined with free automatic backups, 24/7 support, and top-notch security is what makes Nexcess the best WordPress hosting company in the industry.
Check out our Fully Managed WordPress Hosting Plans to get started today.
Scale Your WordPress/WooCommerce Solution with Nexcess
Managed WordPress and WooCommerce plans are scalable hosting plans that allocate 10 or more PHP workers per site. For static blogs or similar sites, that should be more than enough to have them work flawlessly, while other, more complicated websites will easily find their home within other and plans. These hosting plans also come with an excellent 24/7/365 support team ready to help with any glitches that might arise along the way!
See what industry insiders have to say about Nexess and its use of PHP workers:
Other Useful WordPress Links for Developers & Admins
Further Reading for Performance Tuning WordPress
In addition to the increase in site performance by regular WordPress maintenance of WordPress transients, you can see an increase in site performance by:
- Clearing the cache on your WordPress site
- Enabling Redis object caching
- Installing a caching plugin:
Build Better Sites and Stores With Fully Managed Hosting from Nexcess
Faster Speeds, Stronger Security, Inherent Scalability and Trusted Support.
Our range of hosting plans caters to any business scale. We do all the heavy lifting for you to focus on growing your business. In addition, we automatically update ore components and plugins to the latest version and ensure your hosting environment is properly optimized, secured, and updated.
Next Steps with a Nexcess Cloud Hosting Solution?
Read more about the Fully Managed Cloud Environment by Nexcess and its benefits for your business.
A Cloud Hosting Solution That Lets You Do Business Your Way
We believe in the promise of cloud: scalability, security, performance, and ease of use. Together with our team, clients, and partners, we’ve built something better.
Choose From Multiple Applications
Whether you’re a small business or a high-traffic eCommerce store, our cloud hosting solutions are designed around your needs: auto scaling, PCI compliance, and comprehensive development tools provide you with maximum dynamic flexibility in a fully managed cloud environment.
We make applications easy with environment optimizations for:
About the Nexcess Portal
Starting with a new hosting partner can be overwhelming. For that exact reason, we have prepared a Nexcess Portal Guide to make each client’s introduction to our easier.
How to Become a Nexcess Portal Pro
You signed up for an account with Nexcess but now what do you do? New systems can be intimidating to learn, so we’ve put together this guide to help explain what is in the portal and where to find it.
Next Steps with Fully Managed WordPress Hosting?
Read more about the Fully Managed WordPress Hosting and its benefits for your business.
Build Better Websites with Fully Managed WordPress Hosting
It’s hosting optimized for WordPress. That means a faster, more secure and scalable website. Smart monitoring tools are built-in to help you keep it that way.
It’s why WordPress Users Trust Nexcess Hosting.
We also have a variety of Nexcess support articles about WordPress, including how to get your site going with a number of different configuration options. These resources include a great article on setting this up for Migrating to Nexcess with managed WordPress and managed WooCommerce hosting.
Considering Use of a CDN?
If you need any assistance with the above-mentioned, don't hesitate to reach out. For 24-hour assistance any day of the year, Nexcess customers can contact our support team by email or through your Client Portal.
New Customers: Fully Managed Hosting Solutions
- Scope of Support
- Getting started with managed WordPress and WooCommerce hosting
Migrating to Nexcess with managed WordPress and managed WooCommerce hosting
- Going live with your site in Managed WordPress and Managed WooCommerce hosting
- WordPress Cleanup 101: 9 Easy Ways To Clean Up and Optimize Your WordPress Site
- How to configure the Nexcess CDN with WordPress and CDN Enabler
- The Nexcess Plugin Performance Monitor
- What is Scalable WordPress hosting?
- Everything You Wanted to Know About Auto Scaling
- Viewing AWStats for Managed WordPress & WooCommerce