Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

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

Comments

@g4zhuj
Copy link

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 commented Nov 15, 2017

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

@g4zhuj
Copy link
Author

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 commented Nov 17, 2017

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

@vcaesar
Copy link
Member

vcaesar commented Dec 5, 2017

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

@g4zhuj
Copy link
Author

g4zhuj commented Dec 8, 2017

OK

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

No branches or pull requests

2 participants