A question about Riak search 2 delete values from index

Kevin Chan riak.kevin at gmail.com
Tue Aug 26 19:16:52 EDT 2014


Thank you, Luke! I inserted values followed examples in
http://docs.basho.com/riak/2.0.0/dev/using/search/

curl -XPUT "$RIAK_HOST/types/animals/buckets/cats/keys/liono" \ -H
'content-type:application/json' \ -d'{"name_s":"Lion-o", "age_i":30,
"leader_b":true}'

However, it is not clear to remove this key. I tried this:

curl -v -X DELETE http://127.0.0.1:8098/buckets/cats/keys/liono

< HTTP/1.1 404 Object Not Found
* Server MochiWeb/1.1 WebMachine/1.10.5 (jokes are better explained) is not
blacklisted
< Server: MochiWeb/1.1 WebMachine/1.10.5 (jokes are better explained)
< Date: Tue, 26 Aug 2014 23:14:40 GMT
< Content-Type: text/plain
< Content-Length: 10




On Tue, Aug 26, 2014 at 3:44 PM, Luke Bakken <lbakken at basho.com> wrote:

> Hi Kevin,
>
> The top of the document you reference has this disclaimer:
>
> "This document refers to the now deprecated Riak Search."
>
> Please use this document as a reference (you link to it earlier in your
> email):
>
> http://docs.basho.com/riak/2.0.0/dev/using/search/
>
> Finally, if you inserted objects using Riak's Key/Value operations,
> you should delete them that way as well. Have you tried that?
>
> --
> Luke Bakken
> CSE
> lbakken at basho.com
>
>
> On Tue, Aug 26, 2014 at 3:30 PM, Kevin Chan <riak.kevin at gmail.com> wrote:
> > Hi there,
> >
> > I am trying riak search 2, and have followed instructions on
> > http://docs.basho.com/riak/2.0.0/dev/using/search/
> > to create an index and query an index without any problems.
> >
> > However, I could not delete values from the index by either i) using the
> > solr interface, or ii) search-cmd, I followed instructions on
> > http://docs.basho.com/riak/2.0.0/dev/references/search-indexing/
> >
> > Could you please help?
> >
> >
> > The error from the solr interface is as follows:
> >
> >
> > curl -XPOST http://localhost:8098/solr/famous/update  -H
> > 'content-type:text/xml' --data-binary @delete.xml
> >
> > <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not
> Found</H1>The
> > requested document was not found on this
> > server.<P><HR><ADDRESS>mochiweb+webmachine web
> > server</ADDRESS></BODY></HTML>
> >
> >
> >
> > The following is the error by search-cmd:
> >
> > search-cmd show-schema famous
> > ** The search-cmd tool is for a deprecated version of Riak Search.
> > ** Please upgrade to the new version of Riak Search.
> >
> > %% Schema for 'famous'
> > RPC to 'riak at 127.0.0.1' failed: {'EXIT',
> >                                  {noproc,
> >                                   {gen_server,call,
> >                                    [riak_search_config,
> >                                     {get_raw_schema,<<"famous">>},
> >                                     infinity]}}}
> >
> > _______________________________________________
> > 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/20140826/be829c7a/attachment.html>


More information about the riak-users mailing list