My documents are structured like this:
{
timestamp: '2011-02-02 08:00:00',
count: 40,
data {
....
....
}
}
I want to query all documents where count > 40 so in Python I did:
search_query = client.search('bucket', 'count:[40:*]')
search_query.run()
I got an error:
python test_get.py
Traceback (most recent call last):
File "test_get.py", line 11, in <module>
search_query.run()
File "build/bdist.linux-x86_64/egg/riak/mapreduce.py", line 184, in run
File "build/bdist.linux-x86_64/egg/riak/transports/http.py", line
194, in mapred
File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Is this a problem with how I'm storing my data or is something not
configured properly?
Thanks
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com