Title: Search Hero
Author: Search Hero
Published: <strong>3 Ottobre 2024</strong>
Last modified: 17 Luglio 2026

---

Ricerca i plugin

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

# Search Hero

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

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

 * [Dettagli](https://it.wordpress.org/plugins/search-hero/#description)
 * [Recensioni](https://it.wordpress.org/plugins/search-hero/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/search-hero/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/search-hero/#developers)

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

## Descrizione

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.

## Installazione

 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
    ```

## FAQ

### 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.

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“Search Hero” è un software open source. Le persone che hanno contribuito allo sviluppo
di questo plugin sono indicate di seguito.

Collaboratori

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

“Search Hero” è stato tradotto in 3 lingue. Grazie a [chi traduce](https://translate.wordpress.org/projects/wp-plugins/search-hero/contributors)
per il contributo.

[Traduci “Search Hero” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/search-hero)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/search-hero/) segui
il [repository SVN](https://plugins.svn.wordpress.org/search-hero/), segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/search-hero/)
tramite [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

 *  Versione **1.0.4**
 *  Ultimo aggiornamento **2 mesi fa**
 *  Installazioni attive **Meno di 10**
 *  Versione WordPress ** 4.9 o superiore **
 *  Testato fino alla versione **7.0.4**
 *  Versione PHP ** 7.2 o superiore **
 *  Lingue
 * [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/), e [Spanish (Spain)](https://es.wordpress.org/plugins/search-hero/).
 *  [Traduci nella tua lingua](https://translate.wordpress.org/projects/wp-plugins/search-hero)
 * Tag
 * [better search](https://it.wordpress.org/plugins/tags/better-search/)[product search](https://it.wordpress.org/plugins/tags/product-search/)
   [relevance](https://it.wordpress.org/plugins/tags/relevance/)[search](https://it.wordpress.org/plugins/tags/search/)
   [woocommerce search](https://it.wordpress.org/plugins/tags/woocommerce-search/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/search-hero/advanced/)

## Valutazioni

Non sono state ancora inviate recensioni.

[La tua recensione](https://wordpress.org/support/plugin/search-hero/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/search-hero/reviews/)

## Collaboratori

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

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/search-hero/)