[wp-trac] [WordPress Trac] #21803: Add filter to make extending searching easier

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 19:53:14 UTC 2012


#21803: Add filter to make extending searching easier
-------------------------------------+------------------------------
 Reporter:  mark8barnes              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Query                    |     Version:  3.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by mark8barnes):

 Replying to [comment:4 scribu]:
 > > what other fields apart from the excerpt are searchable with LIKE?
 >
 > If you handle the JOINs, you can search through several custom fields or
 even term names, so maybe keeping the prefix is better.


 Maximum flexibility is definitely needed. With the patch you can search
 custom meta data, terms or data stored in other custom post types (by
 joining tables with the `posts_join_paged` filter), or even do more
 complicated lookups (by using the `posts_fields` filter and nesting a
 SELECT).

 One obvious real-world scenario that the filter would make possible
 (together with a JOIN) would be being able to extend the search at `wp-
 admin/edit.php` to include tags.

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


More information about the wp-trac mailing list