automation/medusa-upstream-review
@medusajs/search
2.21.2
Patch Changes
#16928
494745b8e6b63024e1b7741fe95caa4d03b464b0Thanks @sradevski! - fix(search): count distinct values instead of documents for deduplicated Medusa Cloud searches, and reject deduplicating by an unknown or array field#16966
aff9d3e847f254bfa36c55c9daa4d6261a4b8e23Thanks @sradevski! - fix(search): stop the active version cache from undoing an index flip. Setting or invalidating an entry now waits for a refresh in flight to land first, so a refresh that read the database before the flip can no longer drop or roll it back#16930
08f73ec78e17a3a5b6db112290e28f8b3ed79ef6Thanks @sradevski! - fix(search): stop search index versions from piling up. A reindex drops the versions earlier failed or interrupted rebuilds left above the active one, and a swap drops every version below the new active one except its predecessor, instead of leaving them until the next buildUpdated dependencies []:
- @medusajs/framework@2.21.2
2.21.1
Patch Changes
#16834
ad0e98df856f71872c2f1e7c3b5983cfa37d4d51Thanks @sradevski! - Improve how a basic-auth URL is parsed for search#16889
414f04ae69012858a6c935972a93d0fdd9a25b33Thanks @sradevski! - fix(search): send writes to the version that currently serves reads
Which physical index backs a logical index is cached per process, and only the process performing a swap updated its own copy. Another process kept resolving the retired version, so its writes landed somewhere nothing reads and were lost once that version was cleaned up. Writes now resolve the active version fresh, and a read whose cached version has since been dropped resolves again instead of failing.
Also fixes the background refresh latching off after a single failure, which pinned a process to a stale version until the hard TTL expired. That TTL is now 2 minutes rather than 10.
#16801
6498af41624810de111da30a8c9c90d1a7ef820eThanks @sradevski! - feat(search): back off and retry when the search engine rate limits a seed#16796
989e83d74d19bdbe4cde290c23aea5a0693ad9e8Thanks @sradevski! - fix(search): resume a failed seed from where it stopped instead of rebuilding from scratch#16868
7a0cb956645aef3ed13a20c18fc3faf8961ca535Thanks @sradevski! - feat(medusa,search,types): drop search indexes no definition declares any more
db:migrate now plans a drop for every search index left without a definition,
the way it already plans deletions for removed links. It asks which ones to drop
before touching them; --execute-all-search drops them all without prompting and
--execute-safe-search leaves them alone, mirroring the link flags. Unattended
runs with neither flag skip the drops rather than hang on a prompt.
- #16894
854a42c10f14735785fccf74b2f0b53b3b46204fThanks @sradevski! - feat(medusa,search,core-flows,types,js-sdk,dashboard): delete a search index and everything built for it
DELETE /admin/search-indexes/:id drops every physical index ever built for an
index, along with its versions and sync history, so the next migration recreates
it from scratch at version 1. Useful when an index' physical state has drifted
past what a reindex can repair.
Available as searchModuleService.deleteIndex, deleteSearchIndexWorkflow,
sdk.admin.search.deleteIndex, and a confirmed action in the admin dashboard.
- Updated dependencies [
c000d377f1a90d14bcda41500b1ed5bc2734902e]:- @medusajs/framework@2.21.1
2.21.0
Patch Changes
#16762
cbd48e2e0169ef9c016fb25703ae08d70827ff34Thanks @sradevski! - Add search helpers for better DXUpdated dependencies [
e9d1f84dbfacd35d7787d1af03215a6ae5a176d8,a4c0a845e8b3a7a5acfaacbb0c093cd539ac713b,c8701e77534f7b615c8b86814f8d5789c0104382,df8c278d615229436be5b299ebdc76a576695fc3]:- @medusajs/framework@2.21.0
2.20.1
Patch Changes
#16703
75c26e85f3bebc0c921064e9aa37987a76cc24aeThanks @sradevski! - Remove correlated flag on search until supportedUpdated dependencies [
f373c17dd60cb1e7df1d0c70db31d516d2a0cb4f]:- @medusajs/framework@2.20.1
2.20.0
Patch Changes
#16545
4857d15bdcaf5a0648e7adc5b0b40312e23b5c02Thanks @sradevski! - Match admin search prefixes on the last query term so "dtc sta" still finds "Dtc starter".#16545
4857d15bdcaf5a0648e7adc5b0b40312e23b5c02Thanks @sradevski! - Remove the in-memory local search provider. Indexes are created only bydb:migrate, never at application start.#16508
c660642e0dcba2a581086b5176ab8fbc06127ed8Thanks @shahednasser! - fix(search, query, types): return fields and relations not in the search index#16457
693310310610cf439fabb73230187028f2755696Thanks @sradevski! - Implement Medusa Cloud as a built-in search provider#16541
c1e5a8f63988698df7f92b8f1e75f63ab8fdee64Thanks @sradevski! - Drop the previous search provider's indexes whendb:migrateswitches engines.
Log seed/reindex progress (count, rate, last key) so large catalogs can be followed.
#16643
e01b039f256cb8224dd70a99662a49d0e8cf65d1Thanks @sradevski! - Add multiple query support in query.search, move searchMany to providerUpdated dependencies [
847612908fdd1c11a4df09ccc2e8ab44d338bb04,785fd2b8a978201638a4d8d5ae9eea483958c0fb,706ce874672c9cd1d8fc0c5429fc0dd24e6910a9,6a2fce501f3bcd459c21a67f586c7a15b905ff0f,5e06e544a296b9033f20f71f11c559f81a0e5739]:- @medusajs/framework@2.20.0
2.19.0
Patch Changes
#16298
5f4d93c374b0ad0b0a31e75de98c7557e0415677Thanks @sradevski! - Add the Search Module: provider-backed search with an in-memory (Orama) provider, thequery.searchprimitive, index definition discovery fromsearch/, index migrations throughdb:migrate, event-driven ingestion, and an/admin/searchendpointUpdated dependencies [
372a1ab8fa4c8415f1eda294e3c4c5d9dbee4a30,5f4d93c374b0ad0b0a31e75de98c7557e0415677,5105fec20908cf7bcd7f5f859674acdd8a38b982]:- @medusajs/framework@2.19.0