Sorry, I know the documentation is very clear about how stale=ok should work. But, I am not seeing the right behavior.
I am running a _count reduce query with stale set to OK.
Query query = new Query();
I add a new document that changes the count. I wait for about 10 seconds and then run the above query. I expect that automatic index to have run by now and should retrieve the latest count. But, I get back the old count. If the run the query again, I get the latest updated count. So, the system is behaving more like Stale.UPDATEAFTER.
I have checked the auto index setting by running:
I get back:
Am I misunderstanding the way stale queries work? Thank you.