basho/riak_search — pull request #111 by russelldb (2012-05-23 15:57:46+00:00)
Title: Add folsom stats to riak_search

Since there is no legacy output format for stats in search I'm using what I think is the correct format going forward, a 2 tuple of {app_name(), [stat()]}.

Just tested by attaching and running combinations of

riak_search_stat:update(index_begin).
riak_search_stat:update({index_end, N}).
riak_search_stat:update({index_entries, N}).
riak_search_stat:update(solr_query_begin).
riak_search_stat:update({solr_query_end, N}).
%% get stats
riak_search_stat:get_stats().