Update indexes when datastore documents change
Add a replication test to check indexes are up to date