[wp-trac] [WordPress Trac] #56350: Allow exact search in REST API
WordPress Trac
noreply at wordpress.org
Tue Sep 17 21:56:34 UTC 2024
#56350: Allow exact search in REST API
-------------------------------------------------+-------------------------
Reporter: jimmyh61 | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch has-unit- | Focuses: rest-api,
tests has-testing-info | performance
-------------------------------------------------+-------------------------
Changes (by flixos90):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"59034" 59034]:
{{{
#!CommitTicketReference repository="" revision="59034"
REST API: Support exact search in the REST API posts endpoint.
This changeset adds support for a new `search_semantics` enum query
parameter that can be passed alongside the `search` string parameter. At
this point, it only supports "exact" as possible value, but an enum is
used for forward compatibility with potential enhancements like "sentence"
search support. If `search_semantics=exact` is passed, it will look for an
exact match rather than do a full text search, which for some use-cases is
more appropriate and more performant.
Props mehulkaklotar, timothyblynjacobs, jimmyh61, ironprogrammer,
johnregan3, mukesh27, costdev.
Fixes #56350.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56350#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list