-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add a method to delete the index only if it already exists #208
Labels
good first issue
Good for newcomers
Comments
brunoocasali
added a commit
to brunoocasali/meilisearch-swift
that referenced
this issue
Nov 11, 2021
3 tasks
brunoocasali
added a commit
to brunoocasali/meilisearch-swift
that referenced
this issue
Nov 11, 2021
brunoocasali
added a commit
to brunoocasali/meilisearch-swift
that referenced
this issue
Nov 11, 2021
bors bot
added a commit
that referenced
this issue
Nov 11, 2021
232: Add a new function deleteIfExists r=bidoubiwa a=brunoocasali ## What does this PR do? Fixes #208 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to MeiliSearch! Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
bors bot
added a commit
that referenced
this issue
Nov 11, 2021
232: Add a new function deleteIfExists r=bidoubiwa a=brunoocasali ## What does this PR do? Fixes #208 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to MeiliSearch! Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to delete an index that does not exist on the MeiliSearch server will throw an error. To delete it without any error no matter what if it exists or not, we need a new method.
delete_index_if_exists
: it deletes the index but does not throw any error if the index does not exist.Example: https://github.com/meilisearch/meilisearch-python/pull/268/files
delete_index_if_exists
might be named differently in this package. Keep the already existing way of naming in this package to stay idomatic with the language and the repository.Related to meilisearch/integration-guides#107
Sorry if this is already partially/completely implemented, feel free to let me know about the state of this issue.
The text was updated successfully, but these errors were encountered: