mebla icon indicating copy to clipboard operation
mebla copied to clipboard

Document not found for id(s)

Open wedtm opened this issue 12 years ago • 2 comments

When searching for a keyword that will select a document that has since been removed from MongoDB (i.e. still in the index, but not in the database), rails throws a 500 error.

Is there any way to tell Mebla to simply skip these documents if it's not found?

wedtm avatar Mar 16 '12 02:03 wedtm

There isn't a way to skip these documents, but also if a document is deleted from Mongo it should be removed from the index as well.

I'll handle the issue anyway and release a patch

cousine avatar Mar 18 '12 16:03 cousine

What's the appropriate way of deleting them? I thought Melba hooked into all crud operations automatically.

Thanks for handling it anyways, though.

wedtm avatar Mar 19 '12 07:03 wedtm