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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: id not found #912

Open
dmzlingyin opened this issue Aug 5, 2023 · 1 comment
Open

error: id not found #912

dmzlingyin opened this issue Aug 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dmzlingyin
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

What were you trying to achieve?

delete a document

What action did you take?

using golang sdk to delete the doc

What action/response/output did you expect?

delete successfully

What actually happened?

err: 404 info: id not found

How to reproduce the issue?

What version of ZincSearch are you using?

0.4.7

Anything else that you can tell that will help us diagnose and resolve the issue efficiently?

When I searched the documents according to the _id, I found two identical documents. When I used golang's sdk to delete the documents, only one was deleted successfully, and when I deleted the other one, I reported an error: id not found. I can't update this document either

Any attachments/screenshots?

Which service(s) is this relate to?
This could be GUI or API

API

@hengfeiyang hengfeiyang added the bug Something isn't working label Aug 22, 2023
@praveen0raj
Copy link

@dmzlingyin

I have used following API to add duplicate document with the same _id, but it always replaces existing document.

curl -X 'PUT'
'http://localhost:4080/api/olympics/_doc/21boOojh0or'
-H 'accept: application/json'
-H 'authorization: Basic YWRtaW46Q29tcGxleHBhc3MjMTIz'
-H 'Content-Type: application/json'
-d '{"Year": 1900, "City": "Delhi", "Sport": "Athletics", "Discipline": "Athletics", "Athlete": "Praveen Raj", "Country": "USA", "Gender": "Men", "Event": "100M", "Medal": "Gold", "Season": "summer"}
'
For me, I am not able to add multiple documents with the same _id.

Let me know steps if you can reproduce this issue.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants