[wp-trac] [WordPress Trac] #54853: Search only searching phrases and not searching individual terms

WordPress Trac noreply at wordpress.org
Wed Jan 19 07:11:44 UTC 2022


#54853: Search only searching phrases and not searching individual terms
--------------------------+------------------------------
 Reporter:  jchang        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  5.8.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by thelovekesh):

 Implemented logic seems nice to me. If you keep `$searchand = ' OR '` then
 it will lookup according to the words for each search statement. In many
 scenarios, a post title can be passed to search, and you don't want to see
 results based on words at that time.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54853#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list