@etohq/search-legacy
v2.1.1
Published
Eto legacy search module — owns search provider registration and exposes the active provider
Readme
@etohq/search-legacy
eto's pre-port search contract, kept as it was so its users keep working while
they move onto the new Search Module (@etohq/search, ported from Medusa).
Nothing inside changed; only names, paths and the module key did.
New work should use @etohq/search. Don't add features here.
Renames
| Before | After |
|---|---|
| package @etohq/search | @etohq/search-legacy |
| Modules.SEARCH ("search") | Modules.SEARCH_LEGACY ("search_legacy") |
| AbstractSearchService | AbstractLegacySearchService |
| SearchIndexGroup, SearchIndexDocument | LegacySearchIndexGroup, LegacySearchIndexDocument |
| SearchQuery, SearchResult, SearchHit, SearchFacet | LegacySearchQuery, LegacySearchResult, LegacySearchHit, LegacySearchFacet |
| SearchValue, SearchOperators, SearchCondition, SearchSort, SearchRanking | LegacySearchValue, LegacySearchOperators, LegacySearchCondition, LegacySearchSort, LegacySearchRanking |
| SearchUtils (utils bundle) | SearchLegacyUtils |
| ISearchService, IndexSettings (types) | ILegacySearchService, LegacyIndexSettings |
| SearchTypes (types bundle) | SearchLegacyTypes |
| @etohq/types/search, /search/interface, /search/settings | @etohq/types/search-legacy, /search-legacy/interface, /search-legacy/settings |
indexTypes, variantKeys and defaultSearchIndexingProductRelations keep their
names. Modules.SEARCH now belongs to the new module.
The Trieve provider (@etohq/search-trieve) registers against
Modules.SEARCH_LEGACY. Register both under the legacy key:
modules: {
[Modules.SEARCH_LEGACY]: {
resolve: "@etohq/search-legacy",
options: {
providers: [{ resolve: "@etohq/search-trieve", id: "trieve", options: { ... } }],
},
},
}