Hi All,
When I query a view that has no reduce function, I am not getting values set for “key” or “value”.
In CouchbaseClient.cfc on line 1069 there is the following code:
// check for reduced if( isReduced ){ thisDocument.key = thisRow.getKey(); thisDocument.value = thisRow.getValue(); } else { thisDocument.id = thisRow.getID(); }
So if isReduce is false, then only the id gets set. Should it be:
// check for reduced if( isReduced ){ thisDocument.key = thisRow.getKey(); thisDocument.value = thisRow.getValue(); } else { thisDocument.id = thisRow.getID(); thisDocument.key = thisRow.getKey(); thisDocument.value = thisRow.getValue(); }
Or am I looking at it the wrong way?
Thanks,
Adam