[wp-trac] [WordPress Trac] #45376: Search not working as described in codex

WordPress Trac noreply at wordpress.org
Mon Nov 19 13:07:02 UTC 2018


#45376: Search not working as described in codex
--------------------------+-----------------------------
 Reporter:  totatari      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the codex it says if I sort my search query results by relevance it
 should behave as follows:

 "Order by search terms in the following order: First, whether the entire
 sentence is matched. Second, if all the search terms are within the
 titles. Third, if any of the search terms appear in the titles. And,
 fourth, if the full sentence appears in the contents."

 That actually is not right, because the third case never happens! Example:

 I have 3 Posts with titles:  "Keyword", "Key" and "Word"

 If I search for "?s=key+word" the result ist only "Keyword" but it should
 be "Key" and "Word" too!?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45376>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list