Skip to content

Tag: tech-ref

Showing page 18 of 26

Enterprise Search

Enterprise Search was developed by WordPress VIP to expand the usage of Elasticsearch, providing both a search solution and a performance-enhancing layer to existing WordPress searches and queries.

Core WordPress search functionality

The standard search functionality of a WordPress installation makes use of MySQL. MySQL supports various full-text search options. 

Jetpack Search

Jetpack Search is a paid upgrade to the Jetpack plugin that improves the search experience for WordPress sites. Jetpack Search uses Elasticsearch for indexing and searching, typically without any need for a site owner to add custom code.

Post revisions

The revisions system in WordPress stores a record of each saved draft or published update. By default, the WordPress VIP Platform sets revisions for a WordPress environment to unlimited (-1). This default can be overridden by defining WP_POST_REVISIONS with a custom integer value in vip-config.php of the branch that deploys to the environment.

Avoid post__not_in

The WP_Query argument post__not_in appears to be a helpful option, but it can lead to poor performance on a busy and/or large site due to affecting the cache hit rate.

Disallowed WP-CLI commands

Though the CLI commands listed below are disallowed, some of the processes they perform can be achieved by writing a custom WP-CLI command. For example, though several db WP-CLI commands are disallowed, a custom WP-CLI command could run a function that leverages $wpdb->query().

Advanced usage

When running commands with VIP-CLI it is possible nest commands, loop commands, reference file input, write command output to a file, and other advanced operations.

Troubleshooting VIP-CLI

VIP-CLI commands may return errors or unexpected results for a variety of reasons. This page describes common errors and issues, their causes, and recommended resolutions.

Install VIP-CLI

VIP-CLI can be installed through a package manager like npm. After VIP-CLI is successfully installed, authentication with a Personal Access Token is required to access VIP-CLI commands that interact with VIP Platform applications and environments.