Monday, December 9, 2019

Drupal 7 - How To Enable 1-Character Sitewide Search For Chinese Customers

CentOS 7 / Drupal 7


How To Enable 1-Character Sitewide Search For Chinese Customers


Recently, we received a complaint from a Chinese customer who was looking for eye care products on our website.  Instead of providing them with a list of all of our products with the word "eye" in it, she was confronted with an error message stating that the search needed to be a minimum of three characters.


Well, in Chinese, this "character"  means eye:


Obviously, the search component needed to be re-configured to reduce the length of the search string to a single (1) character.

Here's how I did that:



Then click on Configuration


Change Minimum word length to index to 1 and then click on Save configuration.

After that, Chinese search with one character worked!

CAUTION:  Reducing the Minimum word length to index value to 1 character can create a LOT of search indexing and may affect the performance of your Drupal website.  Implement with care.

Great Success!


REFERENCES:





No comments:

Post a Comment