Watcher : How to alert if data is out of sync

I want to put a watcher alert for my index. My data looks like this

id:1,val:popo
id:2,val:lplp
id:3,val:gjj
id:4,val:asd

basically, the ids need to be in a sequence. Now if i receive something like this

id:1,val:popo
id:2,val:lplp
id:4,val:gjj
id:5,val:asd

then, the record with id:3 did not arrive. If something like this happens, then i want to receive an alert. Is it possible to do something like this with watcher? I just need to check if the id of the current record is 1 more than the most recent record received.

Hey,

the main question here is, if you are able to write a regular search query which allows to find out, if your data has been inserted out of order. Do you think this is possible? It is pretty hard to find out with the given information from my external point of view.

--Alex