ElasticSearch Hosting

Elasticsearch is an open-source full-text search engine. It is used to index data and search for such data incredibly quickly.

In the context of WordPress, Elasticsearch can be used for speed up querying the WordPress database . This is done by creating an index of your site's database content and then using Elasticsearch to search for this index much faster than a MySQL query can perform the same search.

If you have the time and ability, Elasticsearch can be integrated with a WordPress site by a highly experienced WordPress and Elasticsearch developer. If your site makes relatively standard use of WP_Query, Elasticsearch can also be integrated by installing ElasticPress , a free WordPress plugin from 10up, available from WordPress.org , which automatically integrates with the WP_Query object to generate query results with Elasticsearch rather than MySQL.

Sites that will benefit most from Elasticsearch

Any site that makes heavy use of WP_Query can benefit from Elasticsearch. Examples of sites that can benefit from Elasticsearch:

  • Sites where research is the primary means of navigation.
  • WooCommerce sites with huge number of orders where site admins need to be able to search the order list regularly.
  • Any site with a large number of posts where MySQL queries produce unacceptably slow results.

If your site has queries that are running unacceptably slow, or if you feel heavy querying is overloading your site's database, it might be a good candidate for Elasticsearch.

Immediate benefits of ElasticSearch

One of the most immediate benefits of ElasticSearch with the addition of ElasticPress is that it saves the CPU load on a site that has a lot of requests.

For example, imagine a site of Books, of Songs where each user who enters tends to do one or more searches. Imagine now that this site is being stormed by thousands of enthusiastic visitors.

Understand with two simple calculations that thousands of queries per minute will arrive at MySQL which obviously will struggle to return answers quickly and therefore also the php process upstream that will be in the waiting phase will be very slow and soon we will saturate everyone the sockets of the php-fpm pool going to produce that annoying 502 bad Gateway, also giving a really embarrassing and unprofitable slow navigation for both the user and the site owners.

502 bad gateway nginx

Furthermore, to cope with the slowness of MySQL requests you will be practically forced to scale everything on an ultra-performing machine with many cores, a lot of RAM, very fast nVME disks, costing at least 300 euros per month if on a dedicated server and several thousand on cloud instances. , however, to realize that even the upgrade of resources is not enough.

With the installation of ElasticSearch combined with ElasticPress you will find a great relief, going to significantly reduce the load (at least 10 times) from the MySQL database and therefore being able to continue working with a lean, responsive and fast site on a machine or instance not too bodied.

We have had customers who have gone from hardware infrastructure rental operating costs from around 600 euros per month to less than 100 euros, simply by replacing the native WordPress search engine with ElasticSearch and ElasticPress, above all to improve the user experience and the speed of the site.

Adding Elasticsearch to a WordPress site

If you want to add Elasticsearch to your WordPress site, do the following:

  1. Contact the managedserver.it support team and request that Elasticsearch be added to your site.
  2. The support team will install Elasticsearch on your site's hosting plan and our billing team will add the additional Elasticsearch subscription to your account. Having Elasticsearch installed on the same server as your PHP environment and MySQL database helps reduce latency rather than hosting it in a separate instance or using Elasticsearch hosted by Elastic.
  3. The ManagedServer.it support team will proceed and install the plug-in ElasticPress on your site and will connect it to the Elasticpress service running in the site container.

 

Some ElasticPress features include: displaying WooCommerce products in search results, auto-completing searches, choosing what you want to index, and query improvements for related posts. If you plan to use a different plugin or build your own integration, please let our support team know and they will skip this step.

Using Elasticsearch with a WordPress website via ElasticPress.io

Once Elasticsearch has been installed, it needs to be integrated with your site. The most common method of integrating your site with Elasticsearch is to install ElasticPress. During the typical setup, our support team will install the ElasticPress plugin and will link it to the Elasticsearch service.

After installation, you will need to log into the administration area of ​​the website and complete the configuration of the ElasticPress plugin. Part of this process is indexing your site's content. If your site's content is extremely large indexing via your WordPress admin may fail. You can use the wp-cli ElasticPress commands to perform indexing over SSH.

If your site uses custom fields and you want to search the content of custom fields, custom development work may be required to get ElasticPress to index and search those fields.

ElasticPress is a fast and flexible search and query engine for WordPress, allows WordPress to find or query relevant content extremely quickly through a variety of highly customizable features. WordPress by default struggles to analyze content relevance and can be very slow.

The plugin also contains features for popular plugins.

Here is a list of the amazing ElasticPress features included in the plugin:

Search - Instantly find the content you are looking for. 

WooCommerce : "I want both cotton, a women's shirt, for under $ 15 in stock." Product customization strains servers and increases load times. Your buyers can quickly find the perfect product and buy it quickly.

Related Articles : ElasticPress understands real-time data, so it can instantly deliver engaging and accurate related content without impacting site performance.

Protected content - Optionally index all your content, including private content and unpublished, to speed up searches and queries in places like the administrative dashboard.

Documents - Index text within popular file types and add those file types to search results.

Autosuggest - Suggest relevant content when text is entered into the search field.

Facets - Add controls to your website to filter content based on one or more taxonomies.

users - Improves user search relevance and query performance.

Your server can't take it anymore? Do you want a WordPress hosting with ElasticSearch? Contact us now!

Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.

0256569681

Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.

INFORMATION

Managed Server Srl is a leading Italian player in providing advanced GNU/Linux system solutions oriented towards high performance. With a low-cost and predictable subscription model, we ensure that our customers have access to advanced technologies in hosting, dedicated servers and cloud services. In addition to this, we offer systems consultancy on Linux systems and specialized maintenance in DBMS, IT Security, Cloud and much more. We stand out for our expertise in hosting leading Open Source CMS such as WordPress, WooCommerce, Drupal, Prestashop, Joomla, OpenCart and Magento, supported by a high-level support and consultancy service suitable for Public Administration, SMEs and any size.

Red Hat, Inc. owns the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. owns the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds holds the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt. Oracle Corporation owns the rights to Oracle®, MySQL®, and MyRocks®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; REDIS® is a registered trademark of Redis Labs Ltd. F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB. Adobe Inc. holds the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited. Automattic Inc. owns the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert holds the rights to Drupal®. Amazon Web Services, Inc. holds the rights to AWS®; Google LLC holds the rights to Google Cloud™ and Chrome™; Microsoft Corporation holds the rights to Microsoft®, Azure®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®. Apache® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group. CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV Hetzner Online GmbH owns the rights to Hetzner®; OVHcloud is a registered trademark of OVH Groupe SAS; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Facebook, Inc. owns the rights to Facebook®. This site is not affiliated, sponsored or otherwise associated with any of the entities mentioned above and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. Any other trademarks mentioned belong to their registrants. MANAGED SERVER® is a trademark registered at European level by MANAGED SERVER SRL, Via Enzo Ferrari, 9, 62012 Civitanova Marche (MC), Italy.

Back to top