Tutorial: Features

Features

Much of ElasticPress's functionality is bundled into features. Here are the features:

Instantly find the content you’re looking for. The first time.

Weighting Engine

The weighting engine lets you shift the search weighting of post fields across different post types.

Note: This feature will NOT work if the plugin is network activated.

Synonyms

Create synonym groups for your searches e.g. New York City and NYC.

Note: This feature will NOT work if the plugin is network activated.

Search Term Highlighting

Search terms will automatically be highlighted in search results. This can be disabled if unnecessary.

WooCommerce

“I want a cotton, woman’s t-shirt, for under $15 that’s in stock.” Faceted product browsing strains servers and increases load times. Your buyers can find the perfect product quickly, and buy it quickly.

ElasticPress understands data in real time, so it can instantly deliver engaging and precise related content with no impact on site performance.

Available API functions:

  • \ElasticPress\Features::factory()->get_registered_feature( 'related_posts' )->find_related( $post_id, $return = 5 )

    Get related posts for a given $post_id. Use this in a theme or plugin to get related content.

  • \ElasticPress\Features::factory()->get_registered_feature( 'related_posts' )->get_related_query( $post_id, $return = 5 )

    Get a WP_Query object with the related posts for a given $post_id.

Protected Content

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

Documents (requires Ingest Attachment plugin)

Indexes text inside of popular file types, and adds those files types to search results.

Autosuggest

Suggest relevant content as text is entered into the search field.

Custom Search Results

This feature lets you insert posts into specific searches. For example, "insert this post as the third result when someone searches ...".

Note: This feature will NOT work if the plugin is network activated.

Facets

Add controls to your website to filter content by one or more taxonomies.

Users (requires WordPress 5.1+)

Improve user search relevancy and query performance.

Terms (requires WordPress 5.3+)

Improve term search relevancy and query performance.