riot icon indicating copy to clipboard operation
riot copied to clipboard

Document with same document id can't be replaced

Open g4zhuj opened this issue 7 years ago • 5 comments

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.

g4zhuj avatar Nov 15 '17 08:11 g4zhuj

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

vcaesar avatar Nov 15 '17 11:11 vcaesar

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.

g4zhuj avatar Nov 17 '17 02:11 g4zhuj

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

vcaesar avatar Nov 17 '17 06:11 vcaesar

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

vcaesar avatar Dec 05 '17 13:12 vcaesar

OK

g4zhuj avatar Dec 08 '17 06:12 g4zhuj