Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Search for post/page/product title returns inconsistent results for words with accents #55643

Open eduardozulian opened 3 years ago

eduardozulian commented 3 years ago

Languages like Portuguese use a lot of accents. Search for post/page/product title returns Inconsistent results for words with accents.

This started as a product issue for the Woo app https://github.com/woocommerce/woocommerce-ios/issues/4801 but @koke quickly identified that this only happens on WP.com sites, both simple and Atomic.

Tested:

Steps to reproduce the behavior

Steps to reproduce the behavior:

  1. Add a post, page, or Woo product with at least a word with accents. In my case, catálogo
  2. Go to the respecitve pages and tap on search
  3. Type the words, partially or not.
  4. You'll get no results

What I expected to happen

To list all results despite the lack of accents.

What actually happened

Using catálogo, if I search for:

Context

Dogfooding.

Does this happen on simple or atomic sites or both?

Both.

Is there any console output or error text?

No.

Level of impact (Does it block purchases? Does it affect more than just one site?)

Low.

Reproducibility (Consistent, Intermittent) Leave empty for consistent.

inaikem commented 3 years ago

Pinged @eduardozulian re Bugomattic and added the issue to the HE Triage board.

dpasque commented 3 years ago

Tagging @Automattic/flow-patrol-create based on issue content

ariel-maidana commented 10 months ago

Another instance here: 7526088-zd-a8c

In this case, products containing the word Hermès in the title are included in the results only if the exact same word ("Hermès") with the accent is searched, or if the first part of the word (before the accentuated letter) is search ("Herm"). Searching for the whole word whiteout an accent ("Hermes") produces no results.

User wants to be informed when this issue is solved.

github-actions[bot] commented 10 months ago

Support References

This comment is automatically generated. Please do not edit it.