Querying a view count issue

Greetings

I have a query I am running and its returning some strange results:

In my view the key is set up as [identifier, type]

in my query I am passing:
keys: [[identifier, 'receipt'],
[identifier, 'open'],
[identifier, 'help'],
[identifier, 'reply'],
[identifier, 'okay']],
group: true,
stale: false

in the results I am getting:
[ { key: [ 'df8b7c21-5056-a011-ac893a42d9bb4739', 'open' ], value: 1 },
{ key: [ 'df8b7c21-5056-a011-ac893a42d9bb4739', 'help' ], value: 7 },
{ key: [ 'df8b7c21-5056-a011-ac893a42d9bb4739', 'receipt' ], value: 1 },
{ key: [ 'df8b7c21-5056-a011-ac893a42d9bb4739', 'help' ], value: 3 },
{ key: [ 'df8b7c21-5056-a011-ac893a42d9bb4739', 'reply' ], value: 6 } ]

Type "help" is returning 2 separate times. The sum of the 2 counts are the correct value. The couchbase server is clustered into 2 servers. Would that cause the values to come back in 2 objects?

0 Answers

No answers yet