Refers to FiboSearch Pro only

Combined words and special character replacement

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 WooCommerceFiboSearchIndexer (tab) and rebuild the index.

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 WooCommerceFiboSearchIndexer (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:

  • + becomes plus
  • × becomes x
  • & becomes and
  • % becomes percent
  • @ becomes at

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 WooCommerceFiboSearchIndexer (tab) and rebuild the index.