My indexing function was working, but then I decided I wanted to store the whole document (the documents are very simple, no nested objects or functions)
so I did
"index": "function(doc) { var ret=new Document(); for (var item in
doc) { ret.add('field': doc[item], 'store': 'yes'); } return ret;}"
and then it said:
