[wp-trac] [WordPress Trac] #21688: Add sanity checks and improve performance when searching for posts

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 25 21:45:47 UTC 2012


#21688: Add sanity checks and improve performance when searching for posts
-------------------------+------------------------------
 Reporter:  azaozz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:3 azaozz]:
 > Yeah, was thinking about that too. Perhaps we can do `strlen($term) < 3
 && !is_numeric($term)`. That would leave any numbers as separate search
 terms.

 Also the search string would still be used as a "sentence" so searching
 for just "5" would match any post that has 5 in the title or content.

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


More information about the wp-trac mailing list