Descriere
Relevanssi Light replaces the default WP search with a search that uses the fulltext indexing capabilities of the database. It requires a modern version of MySQL or MariaDB.
Relevanssi Light is very powerful, as it leverages your database to do all the hard work. Even large sites will return relevant results quickly and efficiently. Indexing is fully automatic and always handled by your database server.
Thanks to Otto Kekäläinen (ottok) for the original idea, development push, and all the feedback.
Feedback is welcome. I follow the support forums here, but you can also post an issue on the Relevanssi Light GitHub page. That’s where the active development happens.
Comparație între Relevanssi Light și Relevanssi
Relevanssi Light este un instrument simplu, ușor de utilizat, cu capabilități limitate. El oferă rezultate de căutare foarte rapide și de calitate mai bună, dar cu puțin loc pentru personalizare și ajustare.
Relevanssi is a full-fledged search solution that offers lots of features and full control over the search index and the search results. It generates useful excerpts with the search terms highlighted, can provide „Did you mean” suggestions, keeps logs and much more. Indexing and searching is much slower than with Relevanssi Light.
Relevanssi Premium adds more features to Relevanssi: it can index user profiles, taxonomy terms, and PDF content, generate related posts lists and more.
Instalare
Relevanssi Light requires a database that supports fulltext indexing. Recent versions of MySQL and MariaDB should be fine.
- Instalează modulul
- Activează modulul
- You’re done!
Relevanssi Light really is this simple to use. No changes are required to your templates or other configuration. Relevanssi Light automatically adjusts the database queries to use the fulltext index it creates.
Activating the plugin for the first time may cause a timeout. That’s just inconvenient, not a real problem: all the database changes still happened and everything should work just fine.
Relevanssi Light is kept very lean on purpose. There are few settings to adjust. If you like adjusting settings, Relevanssi offers lots of settings to adjust.
Limbaj natural versus mod boolean
Fulltext indexing offers two modes of operation. In Natural language mode there are no special operators and searches consists of simple keywords. In Boolean mode, special operators can be used. For a list of these, see Full-Text Index Overview in MariaBD Knowledge Base.
Relevanssi Light uses Natural language mode, as it’s the better choice for large majority of cases. If you need to use Boolean mode, you can enable it by adding this to your theme functions.php:
add_filter( 'relevanssi_light_boolean_mode', '__return_true' );
Inclusiv conținutul câmpurilor personalizate și altele
By default Relevanssi Light includes post titles, post content and excerpts in the fulltext index. Sometimes it’s necessary to include other content, for example custom fields. Relevanssi Light facilitates this by adding a new column, relevanssi_light_data to the wp_posts database tables. Contents of this column are added to the fulltext index.
Relevanssi Light has a method of adding custom field content to this column. It is done by providing a list of custom field names with the relevanssi_light_custom_fields filter hook. For example, in order to include the custom fields _sku and seo_meta_desc in the index, you could add this to the theme functions.php:
add_filter( 'relevanssi_light_custom_fields', function( $fields ) { return array( '_sku', 'seo_meta_desc' ); } );
Acum, când articolele sunt salvate, câmpurile personalizate vor fi adăugate în index. NOTĂ: acest lucru nu se aplică automat pentru toate articolele existente, ci numai când articolul este salvat.
For more complicated cases, you can override the default relevanssi_light_update_post_data() function Relevanssi Light uses (it’s a pluggable function; see the source code for more details). For even more complicated cases, I would recommend using Relevanssi, which will give you a lot more power to control what is indexed.
Recenzii
Contributori și dezvoltatori
„Relevanssi Light” este un software open-source. La acest modul au contribuit următoarele persoane.
Contributori„Relevanssi Light” a fost tradus în 1 locală. Mulțumim traducătorilor pentru contribuția lor.
Tradu „Relevanssi Light” î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
1.2.2
- Fixes a minor SQL injection vulnerability.
1.2.1
- Fixes errors in admin searches.
1.2
- Makes the ‘Process all posts’ cover all posts, not just the post type
post.
1.1
- Fixes the network activation. Now when Relevanssi Light is network activated on a multisite installation, the database changes required are implemented on all network sites (as soon as someone visits the site admin dashboard).
1.0
- Adaugă o pagină Setări pentru a arăta informații despre modul.
- Modificările la baza de date sunt făcute în mod asincron pentru a evita blocarea activării modulului.
- Acum, funcționează dezinstalarea modulului în contextul multi-site.
0.1
- First release, minimum viable product!
