List Keys for a bucket not returning anything

Weixi Yen weixi at spacechatapp.com
Mon Feb 1 14:50:32 EST 2016


Thanks that was it!

On Mon, Feb 1, 2016 at 11:44 AM, Vitaly E <13vitamins at gmail.com> wrote:

> I think it should be
>
> curl -i
> http://localhost:8098/types/comment/buckets/comment/keys?keys=stream
>
> Regards,
> Vitaly
> 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!
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160201/00d5c863/attachment-0002.html>


More information about the riak-users mailing list