Relevanssi – A Better Search

Descriere

Relevanssi replaces the standard WordPress search with a better search engine, with lots of features and configurable options. You’ll get better results, better presentation of results – your users will thank you.

This is the free version of Relevanssi. There’s also Relevanssi Premium, which has added features. For more information about Premium, see Relevanssi.com.

Do note that using Relevanssi may require large amounts (hundreds of megabytes) of database space (for a reasonable estimate, multiply the size of your wp_posts database table by three). If your hosting setup has a limited amount of space for database tables, using Relevanssi may cause problems. In those cases use of Relevanssi cannot be recommended.

Funcționalități importante

  • Rezultatele de căutare sunt sortate în ordinea relevanței, nu după dată.
  • Potrivire neclară: potrivește cuvinte parțiale dacă cuvintele întregi nu se potrivesc.
  • Find documents matching either just one search term (OR query) or require all words to appear (AND query).
  • Search for phrases with quotes, for example „search phrase”.
  • Create custom excerpts that show where the hit was made, with the search terms highlighted.
  • Highlight search terms in the documents when user clicks through search results.
  • Search comments, tags, categories and custom fields.
  • Multisite friendly.
  • Suport bbPress.
  • Gutenberg friendly.

Funcționalități avansate

  • Adjust the weighting for titles, tags and comments.
  • Log queries, show most popular queries and recent queries with no hits.
  • Restrict searches to categories and tags using a hidden variable or plugin settings.
  • Indexează tipurile de articol personalizat și taxonomiile personalizate.
  • Indexează conținutul scurt-codurilor.
  • Google-style „Did you mean?” suggestions based on successful user searches.
  • Support for WPML multi-language plugin and Polylang.
  • Support for s2member membership plugin, Members, Groups, Simple Membership and other membership plugins.
  • Advanced filtering to help hacking the search results the way you want.
  • Accelerarea rezultatelor de căutare pentru a îmbunătăți performanța pentru baze de date mari.
  • Dezactivează indexarea conținutului articolelor și titlurilor articolelor cu un cârlig simplu de filtrare.

Premium features (only in Relevanssi Premium)

  • Indexarea conținutului atașamentelor (PDF, Office, Open Office).
  • Improved spelling correction in „Did you mean?” suggestions.
  • Căutarea pe mai multe site-uri din aceeași instalare multi-site.
  • Search and index user profiles.
  • Search and index taxonomy term pages (categories, tags, custom taxonomies).
  • Search and index arbitrary columns in wp_posts MySQL table.
  • Assign weights to any post types and taxonomies.
  • Assign extra weight to new posts.
  • Let the user choose between AND and OR searches, use + and – operator (AND and NOT).
  • Setări pentru export și import.
  • comenzi WP-CLI.
  • Articole similare.
  • Redirecționări pentru căutări.

Mulțumesc

  • Cristian Damm for tag indexing, comment indexing, post/page exclusion and general helpfulness.
  • Marcus Dalgren pentru corectarea UTF-8.
  • Warren Tape pentru corecțiile la 2.5.5.
  • Mohib Ebrahim for relentless bug hunting.
  • John Calahan pentru testarea extensivă a versiunii beta 4.0.

Capturi ecran

  • Pagină Prezentare generală
  • Setări indexare
  • Setări căutare
  • Setări jurnalizare
  • Rezumate și evidențieri
  • Setări sinonime
  • Setări cuvinte stop

Instalare

  1. Instalează modulul din ecranul Module WordPress.
  2. Activează modulul.
  3. Go to the plugin settings page and build the index following the instructions there.
  4. Asta e tot!

Relevanssi uses the standard search form and doesn’t usually need any changes in the search results template.

If the search does not bring any results, your theme probably has a query_posts() call in the search results template. That throws Relevanssi off. For more information, see The most important Relevanssi debugging trick.

Dezinstalez

To uninstall the plugin remove the plugin using the normal WordPress plugin management tools (from the Plugins page, first Deactivate, then Delete). If you remove the plugin files manually, the database tables and options will remain.

Întrebări frecvente

Bază de cunoștințe

You can find solutions and answers at the Relevanssi Knowledge Base.

Ajutor contextual

Answers to many common problems can be found from the contextual menu. Just click „Help” in the top right corner of your WordPress admin dashboard on the Relevanssi settings page.

Relevanssi nu funcționează

If you the results don’t change after installing and activating Relevanssi, the most likely reason is that you have a call to query_posts() on your search results template. This confuses Relevanssi. Try removing the query_posts() call and see what happens.

Searching for words with ampersands or hyphens doesn’t work

Please read Words with punctuation can’t be found. This is a Relevanssi feature, but you can fix it from Relevanssi indexing settings.

Unde sunt jurnalele de căutare ale utilizatorilor?

See the top of the admin menu. There’s ‘User searches’.

Afișarea punctajului pentru relevanță

Relevanssi stores the relevance score it uses to sort results in the $post variable. Just add something like

echo $post->relevance_score

în șablonul rezultate de căutare în interiorul unui bloc cod PHP pentru a afișa punctajul pentru relevanță.

Ai vrut să spui sugestii?

Relevanssi offers Google-style „Did you mean?” suggestions. See „Did you mean” suggestions in the Knowledge Base for more details.

Ce este ponderea tf * idf?

It’s the basic weighing scheme used in information retrieval. Tf stands for term frequency while idf is inverted document frequency. Term frequency is simply the number of times the term appears in a document, while document frequency is the number of documents in the database where the term appears.

Astfel, ponderea unui cuvânt pentru un document crește cu cât acesta apare mai des în document și cu cât apare mai rar în alte documente.

Ce sunt cuvintele stop?

Fiecare bază de date cu documente este plină de cuvinte inutile. Toate cuvintele mici care apar în aproape fiecare document sunt complet inutile în scopul recuperării informațiilor. Practic, frecvența lor inversată în documente este foarte scăzută, deci ele nu au niciodată prea multă putere în potrivire. De asemenea, înlăturarea acestor cuvinte ajută la micșorarea indexului și la o căutare mai rapidă.

Recenzii

8 mai 2025
This powerful plugin has revolutionised the complex search on my client’s site which contains tens of thousands of images with keywords. I had an issue with speed and the plugin author himself stepped in to point me in the right direction to fix it (which was not a problem with the plugin itself). Top marks for a great product from a great developer.
16 ianuarie 2025
We bought Premium yesterday and by the end of today we were able to do a proof of concept for a news archive we are putting together.  In one day of development I was able to put together a page of pdf’s with mixed Lithuanian and English text.  I was able to restrict the search on the page to a few categories and exclude unrelated pages on the site.  Your documentation on the modifications required to the functions.php file was really good and I was able to make the changes even though I don’t know php. We will be moving to multisite in future and I am confident we will be able to port this to the new site without difficulty. Thanks, Mikko!
5 decembrie 2024
I was really impressed by the quick support from the plugin team; Relevanssi Search has greatly improved the search functionality on my WordPress site. It provides more accurate and relevant results than the default search, with features like custom post type indexing and partial matching.Thanks to the developer(s)
Citește toate cele 395 de recenzii

Contributori și dezvoltatori

„Relevanssi – A Better Search” este un software open-source. La acest modul au contribuit următoarele persoane.

Contributori

„Relevanssi – A Better Search” a fost tradus în 16 locale. Mulțumim traducătorilor pentru contribuția lor.

Tradu „Relevanssi – A Better Search” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări

4.24.6

  • Security: Relevanssi will now strip tags from excerpt text (keeping only the whitelisted tags) to avoid XSS attacks. An attack was possible if you used comments for excerpts or if you had a malicious contributor.
  • Corecție minoră: îmbunătățește performanța prin activarea cache-ului pentru verificarea protecției cu parolă.
  • Minor fix: Relevanssi’s removal of page builder shortcodes is less greedy and won’t cause missed content anymore.

4.24.5

  • Security: Exporting logs now checks for user capability. The default setting is ‘manage_options’, but it can be adjusted with the relevanssi_options_capability filter hook.
  • Securitate: anumiți parametri de interogare au permis atacuri prin injecție SQL. Mulțumim Jack Taylor.
  • Minor fix: Tag and category weights from settings page weren’t applied correctly.

4.24.4

  • Securitate: stopează atacurile XSS în comentarii la evidențierea conținutului articolului.
  • Minor fix: Add support for disabling the Restrict Content Pro ‘Hide restricted posts’ option.
  • Corecție minoră: evită erorile provenite de la valori author_name inexistente.

4.24.3

  • New feature: New filter hook relevanssi_cached_post_object can be used to modify the cached post objects.
  • Minor fix: Relevanssi cache population now creates stdClass objects instead of WP_Post objects to avoid out of memory issues. If you need WP_Post objects, use the relevanssi_cached_post_object filter hook to create them.
  • Corecție minoră: Evită problemelor la valorile pentru câmp personalizat obiect.

4.24.2

  • Minor fix: Fix broken excerpts.

4.24.1

  • Minor fix: Prevent database errors.

4.24.0

  • Minor fix: SEO Framework local search exclude option description now tells what the option actually does.
  • Corecție minoră: popularea cache-ului Relevanssi creează acum obiecte WP_Post în loc de obiecte stdClass.
  • Corecție minoră: modul compatibilitate SEOPress este activat din nou.
  • Corecție minoră: evită erorile fatale în procesul de instalare cu Polylang activat.
  • Minor fix: Update counts link had the wrong tab query parameter.
  • Minor fix: Adjust post type parameter handling so that it doesn’t change the post_type query var.

4.23.1

  • Corecție la securitate: împiedică un atac XSS al unui contributor rău intenționat.

4.23.0

  • Funcționalitate nouă: noul cârlig de filtrare relevanssi_forbidden_post_types filtrează lista cu tipuri de articol excluse din indexarea Relevanssi.
  • Funcționalitate nouă: noul cârlig de filtrare relevanssi_forbidden_taxonomies filtrează lista cu taxonomii excluse din indexarea Relevanssi.
  • New feature: New filter hook relevanssi_show_password_protected controls whether password protected posts are shown in the search results.
  • Funcționalitate nouă: suport pentru parametrul de interogare post_mime_type.
  • New feature: Relevanssi settings tabs have more CSS ids to help hide individual settings.
  • Comportament modificat: articolele protejate cu parolă sunt excluse implicit din rezultatele de căutare pentru a le proteja conținutul.
  • Corecție minoră: în cazuri rare, rezultatele de căutare nu erau în ordinea relevanței dacă nu era utilizată accelerația.
  • Minor fix: The settings tab query parameter was renamed to avoid collisions with other plugins.
  • Corecție minoră: pagina căutări utilizatori folosește acum wp_print_inline_script_tag().