Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meilisearch deleteItems deletes the entire index #33

Open
romajs opened this issue Jan 25, 2024 · 0 comments
Open

Meilisearch deleteItems deletes the entire index #33

romajs opened this issue Jan 25, 2024 · 0 comments

Comments

@romajs
Copy link

romajs commented Jan 25, 2024

This line is wrong: https://github.com/dimitrov-adrian/directus-extension-searchsync/blob/main/lib/indexers/meilisearch.js#L47

Current:

await axios.delete(`${config.host}/indexes/${collection}`, axiosConfig);

It should be:

await axios.delete(`${config.host}/indexes/${collection}/documents`, axiosConfig);

Instead of deleting the index documents it's deleting the entire index. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant