I have a view that cannot find the sole record in my couchbase (4.5.1) after a database flush (and then pushing that one record, which shows in my only bucket under “documents”.
function (doc, meta) {
if ((doc.name === "jira-defect-status") || (meta.id === "defects-jira-defect-status"))
{
emit(doc.time, doc);
}
}
The view not finding the document as well as the document itself in as the “random document” shown above the view can be seen here - https://i.imgur.com/e7QdjC7.png
The document showing up in the bucket documents view - https://i.imgur.com/5yjSZFI.png
So my question is why can’t this view find this document? For reference we were seeing some old documents show up as the latest documents in the view (using descending) which I also cannot explain and the two things may be linked.
From my perspective it’s like the index isn’t working with fresh data and it’s not seeing new pushes.