Starting from FiboSearch version 1.31.0, users can benefit from a more flexible product search experience. This is achieved through indexing product names, SKUs, and excerpts without spaces, allowing users to find products using combined words. Additionally, special characters can be replaced with their word equivalents, further enhancing search accuracy.
Table of Contents
Search by combined words
This feature indexes searchable text without spaces. For example, it enables the search for “epson colorworks c4000” to successfully return the product “Epson Color Works C4000 Series”.
This feature is disabled by default. To enable it, add the following code to your website:
add_filter( 'dgwt/wcas/indexer/searchable/enable_append_joined_text', '__return_true' );
ⓘLearn how to add this snippet to your WordPress.
After adding the code, go to WooCommerce
→ FiboSearch
→ Indexer (tab)
and rebuild the index.
Include SKUs and excerpts in combined word search
By default, only product names are included in combined word indexing. To include SKUs and excerpts as well, add the following code to your website:
add_filter( 'dgwt/wcas/indexer/searchable/append_joined_text/fields', function ( $fields ) { return [ 'name', 'sku', 'excerpt' ]; } );
ⓘLearn how to add this snippet to your WordPress.
After adding the code, go to WooCommerce
→ FiboSearch
→ Indexer (tab)
and rebuild the index.
Replace special characters with words
This feature replaces common special characters with their word equivalents to improve search matching.
Supported replacements:
+
becomesplus
×
becomesx
&
becomesand
%
becomespercent
@
becomesat
To enable it, add the following code to your website:
add_filter( 'dgwt/wcas/indexer/searchable/enable_replace_special_characters', '__return_true' );
ⓘLearn how to add this snippet to your WordPress.
After adding the code, go to WooCommerce
→ FiboSearch
→ Indexer (tab)
and rebuild the index.