Opened 9 years ago
Closed 8 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
@
8 years ago
- Owner set to coffee2code
- Resolution set to fixed
- Status changed from new to closed
In 2781:
#2
@
8 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 match first. To get the same results for sentence matches, spaces should be converted to underscores in the posts_orderby clause.
Version 0, edited 8 years ago
by
(next)
Note: See
TracTickets for help on using
tickets.
Set orderby for searches with pre_get_posts to 'search_orderby_title'