Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#970 closed enhancement (invalid)

If "sanitized" slug matches existing plugin slug, return that first on plugin search

Reported by: chriscct7's profile chriscct7 Owned by:
Milestone: Priority: normal
Component: API Keywords: needs-patch


Right now, WordPress's plugin search seems to based on the idea of matching the closeness of search terms to plugin titles. This can lead to problems when searching for a plugin like WooCommerce, which uses a plugin title of "WooCommerce - Excelling eCommerce".

When you search for "WooCommerce" right now you'll get a list of extensions before the actual plugin.

One way we can easily improve searches is to return the plugin (if it exists) with the same slug as the search term first, before we try to match titles.

This would allow search terms like "WooCommerce" to show WooCommerce first.

To run the slug comparison, the search term needs to be strtolower'd then str_replace spaces with -'s.

Change History (4)

This ticket was mentioned in Slack in #meta by chriscct7. View the logs.

9 years ago

#2 @chriscct7
9 years ago

  • Component changed from General to
  • Keywords needs-patch added

#3 @chriscct7
9 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Looks like there was a momentary glitch there. Its working now. Closing as invalid

#4 @Otto42
9 years ago

We already match on slug as well as exact title matching for "first result", but the actual search part has nothing to do with either of those. It's searching the whole of the readme, not just the plugin names.

Note: See TracTickets for help on using tickets.