Better Search can highlight the terms a visitor searched for, both on the search results page and on the post or page they click through to. This makes it easy for visitors to spot why a result matched their query. How it works Highlighting has two settings on the Output tab of the Better Search...
Better Search Pro CLI (BSP-CLI) was introduced in Better Search Pro v4.3.0, allowing you to manage search operations without touching the admin dashboard. If you’re running large-scale WordPress installations or automating deployments, these commands handle everything from cache warming to database maintenance. About WP-CLI WP-CLI is a set of command-line tools for managing WordPress installations....
Better Search works out of the box. Install and activate it and you’re ready to go. By default, Better Search integrates with your theme by overriding the main query to display relevant search results. If you turn Seamless Mode off, then Better Search will look for a file called better-search-template.php in your current themes folder....
Better Search Pro enhances the WordPress REST API search results to show posts ordered by relevance. When you enable this feature, a REST API search is performed, and Better Search Pro applies the default search configuration, just as it does for standard WordPress search requests. WordPress core utilizes the REST API in various scenarios, including...
Better Search enhances WordPress’s native search capabilities to deliver more relevant results to visitors. At the heart of this functionality is the Better_Search_Query class, which you can use for optimal search performance on your site. What is Better_Search_Query? The Better_Search_Query class extends WordPress’s native WP_Query class, significantly improving search relevance and performance. It implements MySQL’s...
Better Search 4.5.0 registers abilities with the WordPress Abilities API. The shared ability runs a relevance-weighted search; Better Search Pro adds abilities for popular search terms, spelling suggestions, and clearing the cache. Requirements Using an AI assistant The Abilities API does not add a chat screen to WordPress. It makes plugin actions available to connected...
Better Search Pro 4.5.0 exposes AI answers through POST /wp-json/bsearch/v1/ask and the better-search/ask WordPress ability. Both use the same retrieval, limits, cache, and answer validation. The module must be enabled and a compatible WordPress AI Client provider configured. REST request Send a JSON body with question, a plain-language question of 3 to 300 characters. The...
Search redirects, introduced in Better Search Pro 4.4.0, send visitors straight to a specific post, page or URL when they search for a matching keyword, before the search results page loads. Redirected searches are still recorded in your search statistics. Enabling search redirects Adding a redirect rule Click Add redirect and fill in these fields:...
Better Search works with WPML, Polylang, and TranslatePress to return results in the visitor’s active language. It resolves each result to its translation where one exists and keeps its caches separate per language, so results from one language are not shown in another. How Better Search handles languages The language logic lives in one class,...
What is Fuzzy Search? Fuzzy search helps users find results even if their query contains typos, misspellings, or partial matches. By loosening the search criteria, fuzzy search improves accuracy and user satisfaction, especially for sites with a diverse audience or complex search terms. Why Use Fuzzy Search? This is ideal for e-commerce sites, educational resources,...
What is Live Search? Live search, often called Ajax search, dynamically updates search results as users type into the search bar. This provides instant feedback, allowing users to find what they’re looking for without needing to submit the form or reload the page. Why Enable Live Search? Enabling live search improves the user experience by:...
What is “Did You Mean”? When a visitor’s search returns zero results (often because of a typo or misspelling), “Did You Mean” suggests a corrected search term instead of leaving them with an empty results page. Depending on the mode you choose, Better Search Pro either shows a clickable suggestion link or transparently re-runs the...