Hi Wilson,

The basic idea is that you set a flag on a bucket that enables indexing, and
then when you store any objects in that bucket, they get indexed. If you
stick to certain content types, Riak Search is smart enough to break apart
the object that you store. You can read more here:
http://wiki.basho.com/Riak-Search---Indexing-and-Querying-Riak-KV-Data.html

To search on that bucket, you can use either the Erlang HTTP client (
https://github.com/basho/riak-erlang-http-client) or the Erlang Protocol
Buffers client (https://github.com/basho/riak-erlang-client). Both of those
clients have a "search" function where you pass in the bucket and query.

Finally, you can read more about query syntax here:
http://wiki.basho.com/Riak-Search---Querying.html

Best,
Rusty

On Fri, Feb 25, 2011 at 8:44 AM, wilson Tuladhar <mailwilson...@gmail.com>wrote:

> Hi,
>
> Can anyone tell me how one can index the data into riak using an Erlang
> Client??
> I want to do something like this
>
> search:index_doc(<<"my_index">>, <<"my_doc">>, [{<<"title">>, <<"The
> Title">>}, {<<"content">>, <<"The Content">>}])
>
> but this will only work on the server node and i want to index through the
> client node using Erlang Client.
>
> /Wilson
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to