I've edited my schema for one of my indexes and I'm storing some fields in the index including some multiValued fields. If I do queries through the HTTP interfaces, all the values get returned in the results for the multiValued field that are stored. But if I do the same through Riak python bindings with pcb I only get the first value.
Result of HTTP query for /search/my_bucket/q=id:*&rows=1
{
"id": 1,
"groups": ["A","B","C"],
...
}
But if I do it through python
import riak
client = riak.RiakClient(protocol='pbc', nodes=[{'host': MY_SERVER, 'pb_port': MY_PORT},])
bucket = client.bucket("my_bucket", bucket_type="data")
res = bucket.search("id:*", start=0, rows=1)['docs'][0]
I get this:
{
u"id": 1,
u"groups": u"A",
...
}
Oh FYI, I'm running pre20 with python client from master branch with latest commit: 1bc5759
I've edited my schema for one of my indexes and I'm storing some fields in the index including some multiValued fields. If I do queries through the HTTP interfaces, all the values get returned in the results for the multiValued field that are stored. But if I do the same through Riak python bindings with pcb I only get the first value.
Result of HTTP query for /search/my_bucket/q=id:*&rows=1
But if I do it through python
I get this:
Oh FYI, I'm running pre20 with python client from master branch with latest commit: 1bc5759