riot
riot copied to clipboard
Document with same document id can't be replaced
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.
Let me think about it, may not be allowed to repeat id.
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.
Ok, I see, let me think about it and improve it.
You can RemoveDoc first then IndexDoc, let me think about how to do better.
OK