WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#31115 closed defect (bug) (fixed)

Theme search yields unreliable results

Reported by: nyodulf Owned by:
Milestone: WordPress.org Priority: normal
Severity: normal Version: 4.1
Component: WordPress.org Site Keywords:
Focuses: Cc:

Description

There is a theme on the repository called "Responsive Mobile". Entering the the theme's name in the search under Appearance > Themes > Add New does not display the theme for installation within a reasonable amou

If I enter, into the search, the exact name of a theme that exists in the repository, I would expect it to be the first item in the results.

Change History (3)

#1 @dd32
5 years ago

  • Component changed from Themes to WordPress.org site
  • Milestone changed from Awaiting Review to WordPress.org

This is a problem within the Themes API on WordPress.org.

Put simply: The exact match code only gets applied to the current page of results, so if an exact match appears on Page 2 of the sorted results, it doesn't get pulled to the start of the results.

We're currently using bbPress full text searching for the Themes API, with a custom sort-by, so there's not currently an easy way to fix this, however, the Themes API will be moved to WordPress in the near future which might bring some search improvements.

This ticket was mentioned in Slack in #themereview by poena. View the logs.


5 years ago

#3 @Otto42
5 years ago

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

This was due to a bug in the API search results doing incorrect sorting of the returned data for theme searches. This should be corrected now, and the results should match, more or less, those you actually get on the website.

The bug that dd32 mentions still exists, but should not happen nearly as often now that this underlying problem has been fixed.

Note: See TracTickets for help on using tickets.