Hello,
Not sure to follow you and what has fixed your problem, but let me explain something that you may know already but just in case. (not sure that it is the source of your issue)
The documents are “eventually” indexed, since a document is indexed:
- once it is saved on disk
- once the indexer process has been executed
So you need to be sure that the document is on disk and also need to be sure that it is indexed. You can do that by:
-
check the durability constraints (persistTo.One)
See http://docs.couchbase.com/couchbase-devguide-2.2/#why-observe-items -
force the index to be up to date for example with stale=false
See: http://docs.couchbase.com/couchbase-manual-2.2/#couchbase-views-writing-stale
Not that it is a bad idea to do that on each operation since you will put some slow processing in your application code.
Regards
Tug
@tgrall