Hi,
the map function is called once per every document change. It should work. Can you give us more informations?