Currently there is no good way to block an indexed article from the search results or remove it completely. You may update an article with the old ID, both will still exist in the articles collection, and index will awkwardly merge the two article attributes, so this might lead to weird or unexpected behavior.
It would be good to investigate if Lunr has a remove from index function for this or some alternate. We can also expose a /update route that locates a document and keeps track of it.
We would need some data structure or metadata to tell us how to go from the lunr Index to the actual article id that we uploaded.
Currently there is no good way to block an indexed article from the search results or remove it completely. You may update an article with the old ID, both will still exist in the articles collection, and index will awkwardly merge the two article attributes, so this might lead to weird or unexpected behavior.
It would be good to investigate if Lunr has a remove from index function for this or some alternate. We can also expose a
/updateroute that locates a document and keeps track of it.We would need some data structure or metadata to tell us how to go from the lunr Index to the actual article id that we uploaded.