basho/riak_search — pull request #109 by seancribbs (2012-05-22 16:08:38+00:00)
Title: Add search queries to PBC interface.

This is part of a series of pull-requests that adds Riak Search features to the Protocol Buffers interface. It requires the existing refactoring pull-requests to be merged first.

Related: basho/riak_pb#2, [basho/riak_api](/basho/riak_api)

* We are not adding indexing or deleting at this time because we want to encourage use of the KV integration instead.
* All options of the "solr" interface are supported, although "q.op" is named "op". "fl" is expressed as a repeated fields instead of as a comma-separated list.
* Unlike the "solr" interface, the additional search parameter information is not returned, which mostly just repeats request information. Only MaxScore and NumFound are returned to the client.

The gist below contains a patch against basho/riak-ruby-client to demo the new feature and a preliminary, unscientific benchmark script and result set. It relies on loading the "spam" corpus from `basho_expect`. Results suggest (aside from inefficiencies on the Ruby side) that the overhead of HTTP dominates. I will update shortly with comparisons to the MapReduce emulation.

https://gist.github.com/cb87a5c0447e91af53da