[wp-trac] [WordPress Trac] #7394: Search: order results by relevance

WordPress Trac noreply at wordpress.org
Fri Sep 27 17:33:37 UTC 2013


#7394: Search: order results by relevance
------------------------------+---------------------
 Reporter:  markjaquith       |       Owner:  nacin
     Type:  task (blessed)    |      Status:  closed
 Priority:  normal            |   Milestone:  3.7
Component:  General           |     Version:  2.6
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25632"]:
 {{{
 #!CommitTicketReference repository="" revision="25632"
 Order search results by relevance, rather than by date.

 The ordering logic is as follows:
  * Full sentence matches in post titles.
  * All search terms in post titles.
  * Any search terms in post titles.
  * Full sentence matches in post content.

 Each section and any remaining posts are then sorted by date.

 Introduces some filters:
  * wp_search_stopwords, to filter stop words ignored in WHERE.
  * posts_search_orderby, to filter the ORDER BY when ordering search
 results.

 props azaozz, wonderboymusic.
 fixes #7394.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/7394#comment:72>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list