[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 22:53:51 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:2 scribu]:
 > I don't think that's a good idea (discard terms that are less than 3
 characters long). Maybe someone has a specific number in the post title
 that they need to search for.

 Thinking more about that: combined with the improvements from #7394 this
 works very well. Searching for "3 blind mice" strips "3" and searches only
 for "blind" and "mice". However in the ORDER BY the highest priority is
 given to the whole string match, so a post "About the 3 blind mice" would
 be at the very top.

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


More information about the wp-trac mailing list