Check the index health
There is a wide range of subcommands available in wp vip-search health
to check if your index is in sync with the database and to assist in debugging.
Ready to get started with WordPress VIP? Contact us
Showing page 10 of 17
There is a wide range of subcommands available in wp vip-search health
to check if your index is in sync with the database and to assist in debugging.
By following best practices when writing a custom WP-CLI command, the command is more likely to be performant, and easier to debug and maintain over time.
On the VIP Platform, WP-CLI commands run in a container that is separate from a site’s web application, but it shares the Memcached and database containers. It is very important to set protections in place to prevent custom WP-CLI commands from inadvertently affecting a site’s performance.
Tokens are the separate terms that Elasticsearch has taken from input text and divided up. Tokens are stored in Elasticsearch and used to find matches against search terms.
The VIP Code Analysis Bot can be customized by adding configuration options to a JSON file named .vipgoci_options
. The .vipgoci_options
file must be created at the root of a relevant repository.
By default on VIP, PHP_CodeSniffer (PHPCS) analyzes code in all relevant files of a pull request. Additional methods and examples of the options outlined below can be found in the PHP_Codesniffer wiki.
The Network Site launch tool in the VIP Dashboard is strongly recommended for launching sites on a WordPress multisite.
The VIP_Request_Block
utility class can be used to block unwanted origin requests to a site such as those from a bot crawling the site or a malicious IP address. A 403
HTTP Response Status Code is returned for requests that are blocked by VIP_Request_Block
.
A Let’s Encrypt TLS certificate is available by default for any domain that has been added to an environment’s VIP Dashboard. To install a Let’s Encrypt certificate, the domain must be verified and have DNS updated to point to VIP.
Versioning makes it possible to perform a reindex of an Elasticsearch index without needing to drop the current index. Before activating the new version of an index, steps should be taken to ensure that it is healthy.