Automattic / wp-calypso

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

Marketplace Search: Remove spaces in search terms to find common plugins #81273

Open hideandgeek404 opened 1 year ago

hideandgeek404 commented 1 year ago

Quick summary

When searching the plugin marketplace it would be good if the search term was also checked without any spaces to see if common plugins are found. In the case of searching for "WP Bakery" the main plugin is not returned.

Steps to reproduce

  1. Click Plugins > Add new
  2. Search "WP Bakery" (note the space between words)
  3. Search "WPBakery"

What you expected to happen

I would expect that when I search for "WP Bakery" I would see a very closely matched plugin "WPBakery" especially as it is one of the most popular plugins.

What actually happened

Searching for "WP Bakery" returns many results, but none of them are the WPBakery main plugin - although, noted that there are many related plugins with the no space version in the name

Searching for "WPBakery" brings back the desired result of the main plugin as the first result along with the correct related plugins.

Impact

All

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

No response

cuemarie commented 1 year ago

📌 ACTIONS

vykes-mac commented 2 months ago

I'll add to this that it shows 125 plugins found but only display 20 or so plugins without any pagination.

Image

The logged-out version of the marketplace loads the rest as you scroll.

I think the enhancement here is not the search query itself but rather adding pagination to the page similar to .orgs plugin page

Image

epeicher commented 1 month ago

For testing purposes, I have created this diff: D160632-code where I add an additional query removing the spaces as suggested, but the results do not improve with regards to wp bakery.

Production Adding a query that removes the spaces
CleanShot 2024-09-06 at 14 49 56@2x CleanShot 2024-09-06 at 14 50 11@2x

I have also found this comment pdh6GB-3ch-p2#comment-3940 where it is explained that this could be a complex issue to tackle.

@robfelty, have you got any additional suggestions for the Marketplace Search to return results without spaces for queries that include spaces? Also tagging @gibrown for some potential Elasticsearch suggestions to solve this 😄

github-actions[bot] commented 1 month ago

Support References

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

robfelty commented 1 month ago

@epeicher - I added some comments on the phabricator diff.

davemart-in commented 2 weeks ago

Removing this from The One Board, since Bespin has taken it on.