Skip to content

Pre20 Bucket.search does not return the multiple values of a multiValued stored index #322

Description

@stevegaron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions