Open
Description
I'm getting a crash message when I do a search that include both field list limitation and sort. It seems to be crashing in erlang on the server side with an Error processing incoming message: error:badarg
in riak_api_pb_server.erl
. I'm only getting this crash through the python client it actually works from the web interface.
So the following code will crash:
bucket.search("*:*", start=0, rows=1, fl="_yz_rk", sort="_yz_rk desc")
But on the web server side the following works:
http://server.com:8098/search/query/bucket?q="*:*"&start=0&rows=1&fl=_yz_rk&sort=_yz_rk%20desc
I'm running Riak 2.0 RC1 with python client 2.1 RC.
More info. I tried switching the protocol to HTTP inside the python client and it is still crashing. But now the error is more descriptive. I'm getting a KeyError for the field maxScore at the following:
codec.py:229 result['max_score'] = float(json[u'response'][u'maxScore'])