Search

Jetpack Search is a powerful replacement for the search capability built into WordPress. It provides higher quality results and an improved search experience

Search is a powerful search solution backed by Elasticsearch, Jetpack Stats, and our globally distributed data centers. We process your data with multiple technologies for a modern search experience that improves website engagement, so visitors can search, refine their results, and find the content and products that interest them.

This feature is available with a Jetpack Search subscription.

Search includes an API that will speed up the search experience and minimize delays. We think you’ll love some of the new features:

  • Instant search and filtering without reloading the page
  • Real-time indexing supports your search as you type
  • Theme compatibility for both desktop and mobile
  • Prioritized results based on your site traffic
  • Spelling correction and highlighting matching terms

Pricing

Pricing for Jetpack Search depends on how many “records” your site has — posts, pages, products, and custom post types including products. Plans are monthly or annually and when your plan auto-renews, the pricing will automatically adjust based on the number of records in your search index. Here are the cost tiers per month:

  • Up to 100 records: $5
  • Up to 1,000 records: $10
  • Up to 10,000 records: $25
  • Up to 100,000 records: $60
  • Up to 1 million records: $200
  • Over 1 million records: $200 per million records (yes, we have sites with more than a million records!)

When you sign up for an annual plan, you get two months free per year.

Getting Started

Search is active and pre-configured as soon as you purchase the plan.

Once you have the plan, you can start by customizing its appearance using the Customizer.

Search uses an overlay to display all search results. There are a number of configuration options for that overlay available in the Customizer. Use the “Jetpack Search” top-level menu to configure the colors and styles in the overlay.

 

A new sidebar and widget are added to the site as soon as you complete the plan purchase. It even comes complete with preloaded filter types that you can remove and configure as you like.

The new Jetpack Search Sidebar will be displayed on the results overlay once you start searching for something.

You can configure the filters that will be available to your users on both desktop and mobile searches.
You can also add the Search (Jetpack) widget to any of the sidebars included with your theme.

Any filters you configure will open the search overlay automatically no matter where the widget lives.

FAQ

How do I only show results from certain post types (e.g. products)

This code filter will filter all search queries so that only results from products and pages are shown. This does not impact the number of records that are indexed though (see below).

function jp_filter_query( $options ) {
	$options['adminQueryFilter'] = array(
		'bool' => array(
			'should' => array(
				array( 'term' => array( 'post_type' => product' ) ),
				array( 'term' => array( 'post_type' => page ) ),
			)
		)
	);
	return $options;
}
add_filter( 'jetpack_instant_search_options', 'jp_filter_query' );

How do I remove all posts/pages with a certain category

This filter will remove all posts/pages with the “removeme” category from search results. See the developer documentation for other fields available.

function jp_filter_query( $options ) {
	$options['adminQueryFilter'] = array(
		'bool' => array(
			'must_not' => array(
				array( 'term' => array( category.slug' => 'removeme' ) ),
			)
		)
	);
	return $options;
}
add_filter( 'jetpack_instant_search_options', 'jp_filter_query' );

How do I remove a post type from being counted as a record

If you have particular post types on your site that you never want to count as a record and you don’t need for other Jetpack features, then you can completely exclude it from being synced.

add_action( 'plugins_loaded', 'filter_blacklisted_post_types' );
public function filter_blacklisted_post_types() {
	if ( class_exists( '\Automattic\Jetpack\Sync\Settings' ) ) {
		// Get current blacklist
		$blacklist = \Automattic\Jetpack\Sync\Settings::get_setting('post_types_blacklist');
		//Check if post type is in blacklist
		if ( ! in_array( 'topic', $blacklist ) ) {
			// Append post_type to blacklist
			$blacklist[] = 'XXXXX'
			$settings = [
				'post_types_blacklist' => $blacklist
			];
			// Update settings
			\Automattic\Jetpack\Sync\Settings::update_settings( $settings );
		}
	}
}

My custom taxonomy is never being displayed

If you have configured a custom taxonomy in your sidebar widget, but it is never being shown it is possible that your taxonomy is not yet supported. We have a fixed list of custom taxonomies that we index (a bit more than 1,000 of them). We can add to this list fairly easily, but we prefer to only do so with generic words and names. If your custom taxonomy is a generic name and not showing up for searches then please contact support and we should be able to add it.

We are still working on improving the process for adding new taxonomies and post meta fields.

Other questions

If you have questions or concerns, we would love to hear from you! Feel free to contact us.

Privacy Information

This feature is deactivated by default, and activating/unlocking it requires an upgrade to a Jetpack Search subscription. If you ever need to deactivate the feature, you can do so by toggling the Enable Search setting in the Search section from Jetpack — Settings — Performance in your dashboard.

Data Used
Site Owners / Users

 

We use the WordPress.com-connected blog ID in order to submit a visitor’s search request to the WordPress.com servers. Additionally, for activity tracking (detailed below): IP address, WordPress.com user ID, WordPress.com username, WordPress.com-connected site ID and URL, Jetpack version, user agent, visiting URL, referring URL, timestamp of event, browser language, country code.

Site Visitors

 

We use any of the visitor-chosen search filters and query data in order to process the search request on the WordPress.com servers. We also use aggregate data about page views and searches to adjust our search results.

Activity Tracked
Site Owners / Users

 

We track when, and by which user, the feature is activated and deactivated. We also track when, and which, configuration settings are modified (and by which user), as well as when, and by which user, the Jetpack Search widget is updated.

Site Visitors

 

We anonymously track when and what visitors search for and click on. This data is used to improve our search algorithms and track how well search is working. This tracking includes: IP address, URL, user agent, timestamp of event, browser language, country code, search query, filters.

Data Synced (Read More)
Site Owners / Users

 

We sync website content and options to provide search results and improve our search results ranking algorithms.

Site Visitors

 

None.

 

  • Table Of Contents

  • Categories

  • Contact Us

    Need more help? Feel free to contact us.