Skip to content

Crash message when searching with sort and reduced field list. [JIRA: CLIENTS-393] #362

Open
@stevegaron

Description

@stevegaron

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'])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions