[wp-trac] [WordPress Trac] #34211: Ability to specify fields WP_Query can search

WordPress Trac noreply at wordpress.org
Tue May 24 19:17:06 UTC 2016


#34211: Ability to specify fields WP_Query can search
-------------------------+-----------------------------
 Reporter:  paulwilde    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:  4.4
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------
Changes (by boonebgorges):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 Search in WordPress, especially when we start talking about postmeta, is
 always going to be limited by our underlying technologies. For this
 reason, it feels inappropriate to design a significant developer-facing
 API for this kind of search - if we design it, devs will use it, but
 they'll ultimately be unsatisfied with performance. If you need true
 faceted search, you should use a standalone search appliance.

 Maybe we could approach the problem in a more modest way. There are places
 in core where we suffer from the limitations described here. Media is a
 good example - because certain aspects of uploads are stored in postmeta,
 Media search doesn't work properly. So we should address this internally,
 even if we don't build something that we actively encourage developers to
 use. Something closer to what @paulwilde originally suggested seems more
 appropriate to me, though the implementation is going to be tricky,
 especially with regard to `orderby`.

 We'll need the sketch of a patch to move forward.

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


More information about the wp-trac mailing list