Response body is an object, not a bare results array — {results, search_mode, suggested_query, type_counts} — specifically so the frontend can tell a fuzzy fallback apart from a normal match and show "Did you mean…"/"Showing results for…" only when that's actually what happened, per the explicit requirement that fuzzy matching must never silently replace the user's query. type_counts (object_type => count) backs the Content Type filter's own per-option counts — see Search_Database:: count_by_type()'s own docblock. Pagination stays in headers (X-WP-Total/X-WP-TotalPages), matching the convention every other paginated endpoint in this codebase already uses.
Admin-only. Processes exactly one bounded batch of one source's backfill and returns immediately — see Search_Repository:: reindex_next_batch()'s own docblock for why this is one call per batch rather than one long-running request: Davo has no WP-CLI, so this route (driven by the admin Tools screen, one call at a time) is the real product surface for the cold-start/buyer-onboarding reindex, and it has to survive shared hosting's PHP execution-time limits.
Handler: cb_reindex_all_batch()
Parameters of POST /search/reindex-all/batch
Parameter
Type
Required
Default or allowed values
object_type
string
Yes
—
cursor
integer
—
0
batch_size
integer
—
—
curl
curl-X POST -u"user:application-password""https://example.com/wp-json/davo/v1/search/reindex-all/batch" \
-H"Content-Type: application/json" \
-d'{"object_type": "…"}'
Admin-only. Lists every registered source the reindex-all Tools action can back-fill — see Search_Repository:: get_reindexable_sources_manifest()'s own docblock. The admin screen walks this list, calling POST /search/reindex-all/batch repeatedly for each entry until it's fully done.
Response body is now the same envelope shape as GET /search — {results, search_mode, suggested_query} — since Search_Repository:: suggest() can now also fall through to the fuzzy fallback on zero results (with its own smaller candidate limit; see Search_Helpers::get_suggest_fuzzy_candidate_limit()). No pagination headers here — the dropdown was never paginated and still isn't.
Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.