Opened 9 years ago
Closed 9 years ago
#1516 closed enhancement (fixed)
Order search results by title relevance
Reported by: | keesiemeijer | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | has-patch has-screenshots |
Cc: |
Description
The search results should be ordered by title first. As it is now you get a mixed bag of content and title matches.
If it's ordered by title you get more specific results similar to the search query.
See the screenshots for "get posts"
Attachments (5)
Change History (8)
#1
@
9 years ago
- Owner set to coffee2code
- Resolution set to fixed
- Status changed from new to closed
In 2781:
#2
@
9 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
To get even more relevant results the order should be to show the shortest full matches first. To get the same results for sentence matches a condition with spaces converted to underscores should be added in the posts_orderby clause.
Note: See
TracTickets for help on using
tickets.
Set orderby for searches with pre_get_posts to 'search_orderby_title'