|
1
|
# @medusajs/search |
|
2
|
|
|
3
|
## 2.21.2 |
|
4
|
|
|
5
|
### Patch Changes |
|
6
|
|
|
7
|
- [#16928](https://github.com/medusajs/medusa/pull/16928) [`494745b8e6b63024e1b7741fe95caa4d03b464b0`](https://github.com/medusajs/medusa/commit/494745b8e6b63024e1b7741fe95caa4d03b464b0) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): count distinct values instead of documents for deduplicated Medusa Cloud searches, and reject deduplicating by an unknown or array field |
|
8
|
|
|
9
|
- [#16966](https://github.com/medusajs/medusa/pull/16966) [`aff9d3e847f254bfa36c55c9daa4d6261a4b8e23`](https://github.com/medusajs/medusa/commit/aff9d3e847f254bfa36c55c9daa4d6261a4b8e23) Thanks [@sradevski](https://github.com/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 |
|
10
|
|
|
11
|
- [#16930](https://github.com/medusajs/medusa/pull/16930) [`08f73ec78e17a3a5b6db112290e28f8b3ed79ef6`](https://github.com/medusajs/medusa/commit/08f73ec78e17a3a5b6db112290e28f8b3ed79ef6) Thanks [@sradevski](https://github.com/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 build |
|
12
|
|
|
13
|
- Updated dependencies []: |
|
14
|
- @medusajs/framework@2.21.2 |
|
15
|
|
|
16
|
## 2.21.1 |
|
17
|
|
|
18
|
### Patch Changes |
|
19
|
|
|
20
|
- [#16834](https://github.com/medusajs/medusa/pull/16834) [`ad0e98df856f71872c2f1e7c3b5983cfa37d4d51`](https://github.com/medusajs/medusa/commit/ad0e98df856f71872c2f1e7c3b5983cfa37d4d51) Thanks [@sradevski](https://github.com/sradevski)! - Improve how a basic-auth URL is parsed for search |
|
21
|
|
|
22
|
- [#16889](https://github.com/medusajs/medusa/pull/16889) [`414f04ae69012858a6c935972a93d0fdd9a25b33`](https://github.com/medusajs/medusa/commit/414f04ae69012858a6c935972a93d0fdd9a25b33) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): send writes to the version that currently serves reads |
|
23
|
|
|
24
|
Which physical index backs a logical index is cached per process, and only the |
|
25
|
process performing a swap updated its own copy. Another process kept resolving |
|
26
|
the retired version, so its writes landed somewhere nothing reads and were lost |
|
27
|
once that version was cleaned up. Writes now resolve the active version fresh, |
|
28
|
and a read whose cached version has since been dropped resolves again instead of |
|
29
|
failing. |
|
30
|
|
|
31
|
Also fixes the background refresh latching off after a single failure, which |
|
32
|
pinned a process to a stale version until the hard TTL expired. That TTL is now |
|
33
|
2 minutes rather than 10. |
|
34
|
|
|
35
|
- [#16801](https://github.com/medusajs/medusa/pull/16801) [`6498af41624810de111da30a8c9c90d1a7ef820e`](https://github.com/medusajs/medusa/commit/6498af41624810de111da30a8c9c90d1a7ef820e) Thanks [@sradevski](https://github.com/sradevski)! - feat(search): back off and retry when the search engine rate limits a seed |
|
36
|
|
|
37
|
- [#16796](https://github.com/medusajs/medusa/pull/16796) [`989e83d74d19bdbe4cde290c23aea5a0693ad9e8`](https://github.com/medusajs/medusa/commit/989e83d74d19bdbe4cde290c23aea5a0693ad9e8) Thanks [@sradevski](https://github.com/sradevski)! - fix(search): resume a failed seed from where it stopped instead of rebuilding from scratch |
|
38
|
|
|
39
|
- [#16868](https://github.com/medusajs/medusa/pull/16868) [`7a0cb956645aef3ed13a20c18fc3faf8961ca535`](https://github.com/medusajs/medusa/commit/7a0cb956645aef3ed13a20c18fc3faf8961ca535) Thanks [@sradevski](https://github.com/sradevski)! - feat(medusa,search,types): drop search indexes no definition declares any more |
|
40
|
|
|
41
|
`db:migrate` now plans a `drop` for every search index left without a definition, |
|
42
|
the way it already plans deletions for removed links. It asks which ones to drop |
|
43
|
before touching them; `--execute-all-search` drops them all without prompting and |
|
44
|
`--execute-safe-search` leaves them alone, mirroring the link flags. Unattended |
|
45
|
runs with neither flag skip the drops rather than hang on a prompt. |
|
46
|
|
|
47
|
- [#16894](https://github.com/medusajs/medusa/pull/16894) [`854a42c10f14735785fccf74b2f0b53b3b46204f`](https://github.com/medusajs/medusa/commit/854a42c10f14735785fccf74b2f0b53b3b46204f) Thanks [@sradevski](https://github.com/sradevski)! - feat(medusa,search,core-flows,types,js-sdk,dashboard): delete a search index and everything built for it |
|
48
|
|
|
49
|
`DELETE /admin/search-indexes/:id` drops every physical index ever built for an |
|
50
|
index, along with its versions and sync history, so the next migration recreates |
|
51
|
it from scratch at version 1. Useful when an index' physical state has drifted |
|
52
|
past what a reindex can repair. |
|
53
|
|
|
54
|
Available as `searchModuleService.deleteIndex`, `deleteSearchIndexWorkflow`, |
|
55
|
`sdk.admin.search.deleteIndex`, and a confirmed action in the admin dashboard. |
|
56
|
|
|
57
|
- Updated dependencies [[`c000d377f1a90d14bcda41500b1ed5bc2734902e`](https://github.com/medusajs/medusa/commit/c000d377f1a90d14bcda41500b1ed5bc2734902e)]: |
|
58
|
- @medusajs/framework@2.21.1 |
|
59
|
|
|
60
|
## 2.21.0 |
|
61
|
|
|
62
|
### Patch Changes |
|
63
|
|
|
64
|
- [#16762](https://github.com/medusajs/medusa/pull/16762) [`cbd48e2e0169ef9c016fb25703ae08d70827ff34`](https://github.com/medusajs/medusa/commit/cbd48e2e0169ef9c016fb25703ae08d70827ff34) Thanks [@sradevski](https://github.com/sradevski)! - Add search helpers for better DX |
|
65
|
|
|
66
|
- Updated dependencies [[`e9d1f84dbfacd35d7787d1af03215a6ae5a176d8`](https://github.com/medusajs/medusa/commit/e9d1f84dbfacd35d7787d1af03215a6ae5a176d8), [`a4c0a845e8b3a7a5acfaacbb0c093cd539ac713b`](https://github.com/medusajs/medusa/commit/a4c0a845e8b3a7a5acfaacbb0c093cd539ac713b), [`c8701e77534f7b615c8b86814f8d5789c0104382`](https://github.com/medusajs/medusa/commit/c8701e77534f7b615c8b86814f8d5789c0104382), [`df8c278d615229436be5b299ebdc76a576695fc3`](https://github.com/medusajs/medusa/commit/df8c278d615229436be5b299ebdc76a576695fc3)]: |
|
67
|
- @medusajs/framework@2.21.0 |
|
68
|
|
|
69
|
## 2.20.1 |
|
70
|
|
|
71
|
### Patch Changes |
|
72
|
|
|
73
|
- [#16703](https://github.com/medusajs/medusa/pull/16703) [`75c26e85f3bebc0c921064e9aa37987a76cc24ae`](https://github.com/medusajs/medusa/commit/75c26e85f3bebc0c921064e9aa37987a76cc24ae) Thanks [@sradevski](https://github.com/sradevski)! - Remove correlated flag on search until supported |
|
74
|
|
|
75
|
- Updated dependencies [[`f373c17dd60cb1e7df1d0c70db31d516d2a0cb4f`](https://github.com/medusajs/medusa/commit/f373c17dd60cb1e7df1d0c70db31d516d2a0cb4f)]: |
|
76
|
- @medusajs/framework@2.20.1 |
|
77
|
|
|
78
|
## 2.20.0 |
|
79
|
|
|
80
|
### Patch Changes |
|
81
|
|
|
82
|
- [#16545](https://github.com/medusajs/medusa/pull/16545) [`4857d15bdcaf5a0648e7adc5b0b40312e23b5c02`](https://github.com/medusajs/medusa/commit/4857d15bdcaf5a0648e7adc5b0b40312e23b5c02) Thanks [@sradevski](https://github.com/sradevski)! - Match admin search prefixes on the last query term so "dtc sta" still finds "Dtc starter". |
|
83
|
|
|
84
|
- [#16545](https://github.com/medusajs/medusa/pull/16545) [`4857d15bdcaf5a0648e7adc5b0b40312e23b5c02`](https://github.com/medusajs/medusa/commit/4857d15bdcaf5a0648e7adc5b0b40312e23b5c02) Thanks [@sradevski](https://github.com/sradevski)! - Remove the in-memory local search provider. Indexes are created only by `db:migrate`, never at application start. |
|
85
|
|
|
86
|
- [#16508](https://github.com/medusajs/medusa/pull/16508) [`c660642e0dcba2a581086b5176ab8fbc06127ed8`](https://github.com/medusajs/medusa/commit/c660642e0dcba2a581086b5176ab8fbc06127ed8) Thanks [@shahednasser](https://github.com/shahednasser)! - fix(search, query, types): return fields and relations not in the search index |
|
87
|
|
|
88
|
- [#16457](https://github.com/medusajs/medusa/pull/16457) [`693310310610cf439fabb73230187028f2755696`](https://github.com/medusajs/medusa/commit/693310310610cf439fabb73230187028f2755696) Thanks [@sradevski](https://github.com/sradevski)! - Implement Medusa Cloud as a built-in search provider |
|
89
|
|
|
90
|
- [#16541](https://github.com/medusajs/medusa/pull/16541) [`c1e5a8f63988698df7f92b8f1e75f63ab8fdee64`](https://github.com/medusajs/medusa/commit/c1e5a8f63988698df7f92b8f1e75f63ab8fdee64) Thanks [@sradevski](https://github.com/sradevski)! - Drop the previous search provider's indexes when `db:migrate` switches engines. |
|
91
|
|
|
92
|
Log seed/reindex progress (count, rate, last key) so large catalogs can be followed. |
|
93
|
|
|
94
|
- [#16643](https://github.com/medusajs/medusa/pull/16643) [`e01b039f256cb8224dd70a99662a49d0e8cf65d1`](https://github.com/medusajs/medusa/commit/e01b039f256cb8224dd70a99662a49d0e8cf65d1) Thanks [@sradevski](https://github.com/sradevski)! - Add multiple query support in query.search, move searchMany to provider |
|
95
|
|
|
96
|
- Updated dependencies [[`847612908fdd1c11a4df09ccc2e8ab44d338bb04`](https://github.com/medusajs/medusa/commit/847612908fdd1c11a4df09ccc2e8ab44d338bb04), [`785fd2b8a978201638a4d8d5ae9eea483958c0fb`](https://github.com/medusajs/medusa/commit/785fd2b8a978201638a4d8d5ae9eea483958c0fb), [`706ce874672c9cd1d8fc0c5429fc0dd24e6910a9`](https://github.com/medusajs/medusa/commit/706ce874672c9cd1d8fc0c5429fc0dd24e6910a9), [`6a2fce501f3bcd459c21a67f586c7a15b905ff0f`](https://github.com/medusajs/medusa/commit/6a2fce501f3bcd459c21a67f586c7a15b905ff0f), [`5e06e544a296b9033f20f71f11c559f81a0e5739`](https://github.com/medusajs/medusa/commit/5e06e544a296b9033f20f71f11c559f81a0e5739)]: |
|
97
|
- @medusajs/framework@2.20.0 |
|
98
|
|
|
99
|
## 2.19.0 |
|
100
|
|
|
101
|
### Patch Changes |
|
102
|
|
|
103
|
- [#16298](https://github.com/medusajs/medusa/pull/16298) [`5f4d93c374b0ad0b0a31e75de98c7557e0415677`](https://github.com/medusajs/medusa/commit/5f4d93c374b0ad0b0a31e75de98c7557e0415677) Thanks [@sradevski](https://github.com/sradevski)! - Add the Search Module: provider-backed search with an in-memory (Orama) provider, the `query.search` primitive, index definition discovery from `search/`, index migrations through `db:migrate`, event-driven ingestion, and an `/admin/search` endpoint |
|
104
|
|
|
105
|
- Updated dependencies [[`372a1ab8fa4c8415f1eda294e3c4c5d9dbee4a30`](https://github.com/medusajs/medusa/commit/372a1ab8fa4c8415f1eda294e3c4c5d9dbee4a30), [`5f4d93c374b0ad0b0a31e75de98c7557e0415677`](https://github.com/medusajs/medusa/commit/5f4d93c374b0ad0b0a31e75de98c7557e0415677), [`5105fec20908cf7bcd7f5f859674acdd8a38b982`](https://github.com/medusajs/medusa/commit/5105fec20908cf7bcd7f5f859674acdd8a38b982)]: |
|
106
|
- @medusajs/framework@2.19.0 |