On Jan 2, 2012, at 1:08 PM, mete wrote:
function(doc) {
emit(doc.x, {'id':doc.id,'x':doc.x})
}If x is "x" or "x123" etc its fine but if x is "2v2" or "5abcd" etc.. i get the "Expression does not eval to a function." error. Any ideas? If you mean that you’re literally writing “doc.2v2”, that’s not legal JavaScript, so you’re getting a syntax error. Use “doc[‘2v2’]” instead; it’s equivalent. —Jens
