If you’re always using stale=ok in you view hits, the index might not be refreshed until you add enough mutations… 5000 is the default.
Either use stale=false or update-after.
Another interesting option is to change the value of updateMinChanges to 1.
What do you mean with “publishing now and then”? Does the design document automatically vanish? Or are you using it as a workaround to somehow re-index the documents that do not appear in the responses.
Design documents are there (when I look into the GUI of couchbase server). I must manually click publish on production views to make the server api query succeed. Each and every time I need to relaunch server(.NET) I need to do this.
I have followed one suggestion of setting the stale=false;however it is no different/
Thanks for helping me out here with my view problem. I found the issue with my views. I was trying to recreate design document pragmatically by using actionfilter - something like this [CouchbaseDesignDoc(“doorevents”)]
This was causing production design documents to be initialized ie no views are present for production views.
I have removed the pragmatical creation of design document and everything seems okay.