Views not updating

I have done some more tests.

It appears that documents added via the sync gateway are not indexed by the views on write but instead the view is indexed lazily after a read so that every first view query fails.

This looks like a bug so I’ll raise a ticket for it.

Paul