WordPress.org

Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#970 closed enhancement (invalid)

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

Reported by: chriscct7 Owned by:
Milestone: Priority: normal
Component: API Keywords: needs-patch
Cc:

Description

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.


5 years ago

#2 @chriscct7
5 years ago

  • Component changed from General to api.wordpress.org
  • Keywords needs-patch added

#3 @chriscct7
5 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
5 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.