Riak search. Different results (XML - JSON)

Vladimir Shapovalov shapovalov at gmail.com
Sat Aug 25 13:09:02 EDT 2012


Hi all,

I've a key in a bucket, witch is indexed.

{
...
"street":"Sabinastraße"
...
}

If I retrieve the key this way:
curl -i -v http://localhost:8098/buckets/is_solr/keys/123

The response looks like:

{
...
"street":"Sabinastraße"
...
}
which is correct.

If I search for key and expect XML output:
curl -i -v "
http://localhost:8098/solr/is_solr/select?wt=xml&q=street:Sabinastra%C3%9Fe"

Response:
<response>
...
<result name="response" numFound="1" start="0" maxScore="0.353553">
<doc>
...
  <str name="street">Sabinastraße</str>
  ...
</doc>
</result>
</response>

wich is also correct.

But in case the format of the output is JSON:
curl -i -v "
http://localhost:8098/solr/is_solr/select?wt=json&q=street:Sabinastra%C3%9Fe<http://localhost:8098/solr/is_solr/select?wt=xml&q=street:Sabinastra%C3%9Fe>"


result looks differently:
...
"street":"Sabinastra\u00dfe"
...

Why is the JSON response looks differently then XML?
Is it an expected output or I'm doing something wrong?

Thanks in advance!
Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120825/71837b36/attachment.html>


More information about the riak-users mailing list