List Keys for a bucket not returning anything

Weixi Yen weixi at spacechatapp.com
Mon Feb 1 14:01:09 EST 2016


I'm trying *delete* and *rebuild* yokozuna search indexes.

One idea was to just list all the buckets and all the keys, and trigger an
update to rebuild the index.

However, the following commands don't seem return any buckets or keys.


*curl -i http://localhost:8098/buckets/comment/keys?keys=stream
<http://localhost:8098/buckets/comment/keys?keys=stream>*

HTTP/1.1 200 OK
Vary: Accept-Encoding
Transfer-Encoding: chunked
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Mon, 01 Feb 2016 18:57:11 GMT
Content-Type: application/json

{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}{"keys":[]}


*curl -i http://localhost:8098/buckets?buckets=true
<http://localhost:8098/buckets?buckets=true>*

HTTP/1.1 200 OK
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Mon, 01 Feb 2016 18:56:47 GMT
Content-Type: application/json
Content-Length: 14

{"buckets":[]}

(My bucket_type is '*comment'*, and bucket is named '*comment'**)*
(This is for Riak 2.1.2-0-gf969bba)

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160201/b3a2e229/attachment-0002.html>


More information about the riak-users mailing list