Hi All,
I have a the following document schema.
{
"userId": "d87677b1-e985-414b-a252-f7653de19ed7",
"threadId": "14fc6003f6be5a5e",
"messageId": "14fc6f996cb6a123"
}
My view definition is :
*Map function*
function (doc, meta) {
if(doc._class="RawMessage" && doc.userId && doc.threadId) {
emit([doc.userId,doc.threadId],null);
}
}
Reduce function
_count
I am trying to fetch all the threads of a specific user. Query params I
have used are:
startKey=["d87677b1-e985-414b-a252-f7653de19ed7"]&endKey=[
"d87677b1-e985-414b-a252-f7653de19ed7"]&group=true&inclusive_end=true
However I do not get any results back.
If I change the endKey to d87677b1-e985-414b-a252-f7653de19ed8, then I see
the results. Not sure why exact match with inclusive is not working.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.