Permalink
Browse files

Fix Riak search for the millionth time

  • Loading branch information...
1 parent b5849ff commit 5fd838542868de28ffb6f2782480dfff8ecb3cbd @evanmiller evanmiller committed Mar 31, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/db_adapters/boss_db_adapter_riak.erl
@@ -59,8 +59,9 @@ find(Conn, Type, Conditions, Max, Skip, Sort, SortOrder) ->
[] ->
riakc_pb_socket:list_keys(Conn, Bucket);
_ ->
- {ok, KeysExt} = riakc_pb_socket:search(Conn, Bucket, build_search_query(Conditions)),
- {ok, lists:map(fun ([_,X])-> X end, KeysExt)}
+ {ok, {search_results, KeysExt, _, _}} = riakc_pb_socket:search(
+ Conn, Bucket, build_search_query(Conditions)),
+ {ok, lists:map(fun ([{_,X}])-> X end, KeysExt)}
end,
Records = find_acc(Conn, atom_to_list(Type) ++ "-", Keys, []),
Sorted = if

0 comments on commit 5fd8385

Please sign in to comment.