WordPress

WordPress

The HawkSearch plugin for WordPress connects any WordPress site to HawkSearch. It indexes posts, pages and custom content types, and adds products automatically when WooCommerce is active. This documentation covers installation, configuration, HawkSearch setup, indexing, tracking, recommendations and the storefront search experience.

The connection and initial setup are managed within WordPress, while ongoing search tuning, merchandising, recommendations and analytics are maintained within the HawkSearch Workbench. The standard implementation uses HawkSearch Rapid UI to replace the default WordPress search with HawkSearch search, autocomplete, facets and recommendations.

HawkSearch search results in WordPress

Requirements

RequirementNotes
WordPress6.4 or later. Single sites and multisite networks are supported.
PHP8.0 or later.
WooCommerceOptional. When active, products, prices, stock, attributes and sales tracking are added.
PermalinksAny structure other than "Plain" (needed for the search results page).
HawkSearch engineAn engine with its API key, Client GUID and engine name. See the QuickStart guide.
Network accessThe web server must be able to make outgoing HTTPS requests to *.hawksearch.com.

Supported Features

FeaturesNotes
SearchAll features for Boost/Bury, Pinning, Synonyms, Redirects, Spelling override and Keyword replacement
Did You MeanAll features supported
Advanced SKU SearchAll features supported. Variable products include the SKUs of all their variations.
AutocompleteAll features supported
Instant EngageAll features supported. Switched on in the plugin's Search settings.
FacetsAll features supported. Basic facets can be created in WordPress; advanced options are set in HawkSearch.
Tabbed resultsSupported automatically when products and other content are indexed together.
SortingAll features supported
Campaigns and bannersAll features supported
RecommendationsAll features supported. Widgets are created in HawkSearch and placed with a shortcode or on product pages.
Event trackingSearch, clicks, autocomplete, recommendations, product views, add to cart and purchases.

Features Which Require Additional Setup

FeatureNotes
Landing PagesSupported through the Rapid UI landing page component. Requires small front end changes.
Visitor Target / PersonasSupported through small front end template changes.
Hawk AISmart Search and Smart Response are available through basic front end changes. See Available Enhancements.
VariantsVariable products are indexed as one item. Variant-level indexing is not yet supported.

In This Section


Did this page help you?