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

Document with same document id can't be replaced #19

Open
g4zhuj opened this issue Nov 15, 2017 · 5 comments
Open

Document with same document id can't be replaced #19

g4zhuj opened this issue Nov 15, 2017 · 5 comments
Labels
Milestone

Comments

@g4zhuj
Copy link

@g4zhuj g4zhuj commented Nov 15, 2017

When I add the document with same id but different content to the index, the former still can be searched.
Maybe it should be replaced by the latter.

@vcaesar
Copy link
Member

@vcaesar vcaesar commented Nov 15, 2017

Let me think about it, may not be allowed to repeat id.

@g4zhuj
Copy link
Author

@g4zhuj g4zhuj commented Nov 17, 2017

If I use riot as a search engine of customer support tickets system,each ticket can be treated as a document, and ticket id equals document id.When the ticket is edited by user, I will update the document, but if the document can't be replaced, those documents are redundant.

@vcaesar
Copy link
Member

@vcaesar vcaesar commented Nov 17, 2017

Ok, I see, let me think about it and improve it.

@vcaesar
Copy link
Member

@vcaesar vcaesar commented Dec 5, 2017

You can RemoveDoc first then IndexDoc, let me think about how to do better.

@g4zhuj
Copy link
Author

@g4zhuj g4zhuj commented Dec 8, 2017

OK

@vcaesar vcaesar added this to the v0.20.0 milestone Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.