Title: Search Hero
Author: Search Hero
Published: <strong>ጥቅምት  3, 2024</strong>
Last modified: ሐምሌ 17, 2026

---

Search plugins

![](https://ps.w.org/search-hero/assets/icon-256x256.png?rev=3610821)

# Search Hero

 By [Search Hero](https://profiles.wordpress.org/adamstevenson/)

[Download](https://downloads.wordpress.org/plugin/search-hero.1.0.4.zip)

 * [Details](https://am.wordpress.org/plugins/search-hero/#description)
 * [Reviews](https://am.wordpress.org/plugins/search-hero/#reviews)
 *  [Installation](https://am.wordpress.org/plugins/search-hero/#installation)
 * [Development](https://am.wordpress.org/plugins/search-hero/#developers)

 [ድጋፍ](https://wordpress.org/support/plugin/search-hero/)

## ማብራሪያ

WordPress searches your posts with a database LIKE query. It gets slower as your
site grows, it cannot tell an important match from a passing mention, and it orders
results by date rather than by how well they match.

Search Hero replaces that with a proper search index of your content, so results
come back ranked by how relevant they actually are.

**How results are ranked**

 * Every word you search for has to appear in a post for it to match. The one exception
   is a word so common it turns up in almost every post on your site, like “the”,
   which tells us nothing about which post you want and is ignored.
 * Rare words count for more than common ones, so a post _about_ your search term
   beats one that merely mentions it.
 * Words found close together score higher, so a search for several words favours
   posts where they appear as a phrase.
 * Matches in a short post count for more than the same matches buried in a long
   one.

**As you type**

Results appear under your search box as visitors type. Each search box covers one
kind of content: a normal search box searches your posts, and a product search box
searches products. There is a `[search_hero_search post_type="product"]` shortcode
for a search box on any page, and the same instant results appear on the admin post
list, where they take you straight to the editor.

**What gets indexed**

Every public post type that is searchable: posts, pages, custom post types, and 
products. Each one is indexed into its own tables, so Products can be rebuilt without
touching Posts, and a rebuild of one leaves the rest searchable throughout. Choose
which ones on the settings page; developers can narrow or widen the choices with
the `search_hero_indexed_post_types` filter.

**It stays up to date on its own**

Index once after installing. From then on, publishing, editing, unpublishing, trashing,
restoring and deleting content all update the index as they happen. There is nothing
to re-run.

**No external service**

The index lives in your own database. Nothing about your content is sent anywhere,
there is no API key, and there is no per search cost.

## መጫን

 1. Install and activate the plugin.
 2. Go to Search Hero > Settings and tick the content you want searchable.
 3. Go to Search Hero > Indexing and press Index Everything. Leave the page open until
    it finishes.
 4. That is it. Your site’s search box now uses Search Hero.

Only the front end search is replaced. The admin post list still searches the way
it always did, so you can still find drafts there; Search Hero adds instant results
above it as a shortcut to published content.

On a large site, index from the command line instead:

    ```
    wp search-hero index
    ```

To rebuild just one kind of content:

    ```
    wp search-hero index --section=product
    ```

## የተለመዱ ጥያቄዎች

### Do I have to re-index when I publish something?

No. New and edited content is indexed as you save it. Indexing by hand is only for
the first run, or if you want to rebuild from scratch.

### Does it work with WooCommerce products or custom post types?

Yes. Any public post type that is searchable can be indexed, each into its own tables,
and you choose which ones on the settings page. Each search covers a single kind:
a product search returns products, a post search returns posts. WordPress already
tells the plugin which one from the search itself, so a WooCommerce product search
reaches the product index automatically.

### Can one search box search everything at once?

No, by design. A search covers one post type. Content of different kinds is indexed
separately and never mixed into one list, because how well something matches is 
only meaningful next to others of the same kind. Point a search box at the type 
you want with the shortcode’s `post_type` attribute, or let the query decide.

### Do I need to re-index after updating the plugin?

Yes, for this release. Relevance scoring and the stored index both changed, so run
Rebuild Index (or `wp search-hero index`) once after updating.

### Will it slow down my site?

Searching reads a compact index rather than scanning your posts table, so it gets
faster relative to the built in search as your site grows. Indexing is the expensive
part, and it only runs when content changes.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Search Hero” is open source software. The following people have contributed to 
this plugin.

Contributors

 *   [ Search Hero ](https://profiles.wordpress.org/adamstevenson/)

“Search Hero” has been translated into 3 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/search-hero/contributors)
for their contributions.

[Translate “Search Hero” into your language.](https://translate.wordpress.org/projects/wp-plugins/search-hero)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/search-hero/), check
out the [SVN repository](https://plugins.svn.wordpress.org/search-hero/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/search-hero/) by
[RSS](https://plugins.trac.wordpress.org/log/search-hero/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.4

 * The bundled translations now load: all 24 languages apply correctly (they were
   previously never picked up).
 * A fresh plugin icon.
 * Tested up to WordPress 7.0.

#### 1.0.3

 * Results as you type, under your own search box. Each box searches one kind of
   content; a `[search_hero_search post_type="..."]` shortcode and the admin post
   list are covered too.
 * A settings page: choose what gets indexed, tune the instant results, or hand 
   search back to WordPress without deactivating.
 * Each kind of content is now indexed into its own tables, so one can be rebuilt
   without disturbing the others. Re-index once after updating.

#### 1.0.2

 * Much faster searching and indexing, and substantially better relevance ranking.
 * Many fixes: content now indexes automatically, pages and custom post types are
   included, and results, counts and pagination are correct. Re-index once after
   updating.

#### 1.0

 * Initial Release

## Meta

 *  Version **1.0.4**
 *  Last updated **2 ወሮች  ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **7.0.4**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/search-hero/), [English (US)](https://wordpress.org/plugins/search-hero/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/search-hero/), እና [Spanish (Spain)](https://es.wordpress.org/plugins/search-hero/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/search-hero)
 * Tags
 * [better search](https://am.wordpress.org/plugins/tags/better-search/)[product search](https://am.wordpress.org/plugins/tags/product-search/)
   [relevance](https://am.wordpress.org/plugins/tags/relevance/)[search](https://am.wordpress.org/plugins/tags/search/)
   [woocommerce search](https://am.wordpress.org/plugins/tags/woocommerce-search/)
 *  [Advanced View](https://am.wordpress.org/plugins/search-hero/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/search-hero/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/search-hero/reviews/)

## Contributors

 *   [ Search Hero ](https://profiles.wordpress.org/adamstevenson/)

## ድጋፍ

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/search-hero/)