Lyes, If you are storing the document into KV as well then you could install the Search commit hook and using the protobuff client [1] to write documents.
To use a Search query as input to map/reduce you can use riakc_pb_socket:search/5. Note that this currently doesn't allow you to specify inline field filters. -Ryan [1]: https://github.com/basho/riak-erlang-client On Thu, Oct 13, 2011 at 11:20 AM, Lyes zaiko <[email protected]> wrote: > Hi everybody! > > I want to index documents into a riak_search index from a distant erlang > node using the erlang search api. For the moment, I use the rpc:call() > function to do this, is there a better mean to perform such operation > without passing throug rpc:call() (perhaps using the riak client or other > thing), but from the erlang node (I don't want to use the http api)? > > > By the way, can someone give me an example about how to use an erlang > function for a mapred_saerch map/reduce. > > thank you! > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
