Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ services:

meilisearch:
hostname: meilisearch
image: getmeili/meilisearch:v1.8
image: getmeili/meilisearch:v1.19
restart: on-failure
environment:
- MEILI_MASTER_KEY=masterKey
Expand Down
2 changes: 1 addition & 1 deletion docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ services:
- db

meilisearch:
image: getmeili/meilisearch:v1.8
image: getmeili/meilisearch:v1.19
hostname: meilisearch
restart: on-failure
environment:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"lodash.groupby": "4.6.0",
"lodash.partition": "4.6.0",
"lodash.uniqby": "4.7.0",
"meilisearch": "0.41.0",
"meilisearch": "0.44.0",
"mime": "3.0.0",
"mimetics": "1.0.4",
"node-fetch": "2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Index,
MeiliSearch,
type MultiSearchParams,
type MultiSearchResponse,
Task,
TaskStatus,
} from 'meilisearch';
Expand Down Expand Up @@ -106,7 +105,7 @@ describe('MeilisearchWrapper', () => {
describe('search', () => {
const searchSpy = jest
.spyOn(MeiliSearch.prototype, 'multiSearch')
.mockResolvedValue({} as MultiSearchResponse);
.mockResolvedValue({ hits: [], query: '', processingTimeMs: 0 });

it('search is delegated to meilisearch SDK', async () => {
// Create a mock DataSource object
Expand Down
2 changes: 1 addition & 1 deletion src/workers/searchIndex.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class SearchIndexService {
const index = await this.meilisearchClient.getIndex(name);
return index;
} catch (err) {
if (err instanceof MeiliSearchApiError && err.code === 'index_not_found') {
if (err instanceof MeiliSearchApiError && err.cause?.code === 'index_not_found') {
const task = await this.meilisearchClient.createIndex(name);
await this.meilisearchClient.waitForTask(task.taskUid);

Expand Down
23 changes: 6 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6463,15 +6463,6 @@ __metadata:
languageName: node
linkType: hard

"cross-fetch@npm:^3.1.6":
version: 3.2.0
resolution: "cross-fetch@npm:3.2.0"
dependencies:
node-fetch: "npm:^2.7.0"
checksum: 10/e4ab1d390a5b6ca8bb0605f028af2ffc1127d2e407b954654949f506d04873c4863ece264662c074865d7874060e35f938cec74fe7b5736d46d545e2685f6aec
languageName: node
linkType: hard

"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3, cross-spawn@npm:^7.0.5":
version: 7.0.6
resolution: "cross-spawn@npm:7.0.6"
Expand Down Expand Up @@ -8719,7 +8710,7 @@ __metadata:
lodash.groupby: "npm:4.6.0"
lodash.partition: "npm:4.6.0"
lodash.uniqby: "npm:4.7.0"
meilisearch: "npm:0.41.0"
meilisearch: "npm:0.44.0"
mime: "npm:3.0.0"
mimetics: "npm:1.0.4"
nock: "npm:13.5.4"
Expand Down Expand Up @@ -10843,12 +10834,10 @@ __metadata:
languageName: node
linkType: hard

"meilisearch@npm:0.41.0":
version: 0.41.0
resolution: "meilisearch@npm:0.41.0"
dependencies:
cross-fetch: "npm:^3.1.6"
checksum: 10/c09a874a81cc7b955ab8915b47f3638f961739e9dd64995bac95e01f0d457e1f1676dbd3466d037c4fce3c40db999cef77d6150aa134405eb6da7b9a1cdcf8fe
"meilisearch@npm:0.44.0":
version: 0.44.0
resolution: "meilisearch@npm:0.44.0"
checksum: 10/e5dff78d4b17df7bb4a4826c36d3a2aeb2a6b9f1d339ec43f3e8d523dbe67329a870344d7f7dd0dd0913ad40c08ff7f12c8f696e34e1c4a99e4ee7c1d7f3fa84
languageName: node
linkType: hard

Expand Down Expand Up @@ -11288,7 +11277,7 @@ __metadata:
languageName: node
linkType: hard

"node-fetch@npm:2, node-fetch@npm:^2.7.0":
"node-fetch@npm:2":
version: 2.7.0
resolution: "node-fetch@npm:2.7.0"
dependencies:
Expand Down
Loading