Skip to content

docs: deprecate reindex/backfill and ES-era query param docs (PPT-2644) - #29

Merged
camreeves merged 1 commit into
masterfrom
PPT-2644-deprecate-reindex
Aug 13, 2026
Merged

docs: deprecate reindex/backfill and ES-era query param docs (PPT-2644)#29
camreeves merged 1 commit into
masterfrom
PPT-2644-deprecate-reindex

Conversation

@camreeves

@camreeves camreeves commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Part of PPT-2644: PlaceOS search moved from Elasticsearch to PostgreSQL full-text search (models#324/#325, rest-api#445 — merged). The ES-era admin endpoints /reindex and /backfill are now server-side 200 no-ops pending removal, and several index-endpoint query params changed meaning or stopped doing anything. This PR updates the SDK docs to match; it is documentation/deprecation only — zero runtime change.

What

  • reindex() and backfill() (src/root/functions.ts) are tagged @deprecated — they still call their endpoints (which return 200) so existing callers, including Backoffice's admin card, keep working. The methods themselves will be removed in the next ts-client major.
  • PlaceResourceQueryOptions (src/resources/interface.ts) doc rewrites:
    • q — no longer ES simple_query_string syntax; words match as prefixes against the resource's searchable fields and all words must match.
    • fields@deprecated, ignored by the server (was ES field-list/boost syntax).
    • ref@deprecated, ignored by the server; pagination follows the Link header's offset.
    • offset — un-deprecated (it is the pagination mechanism again), max corrected to 1,000,000.
    • limit — max corrected from 500 to 10,000.

Verification

  • Type/doc-comment surface only; no emitted-code change beyond the @deprecated JSDoc tags.
  • Full test suite green: 65 files, 546/546 tests passed (vitest).

Merge order

Independent of the other PPT-2644 infra-removal PRs — safe to merge any time. Actual removal of reindex()/backfill() lands in the next ts-client major.

Search is served from PostgreSQL full-text search: /reindex and
/backfill are server-side no-ops pending removal, the fields and ref
params are ignored, and q is prefix-word matching (all words must
match).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@camreeves
camreeves merged commit 5677a8a into master Aug 13, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant