Skip to content

Instantly share code, notes, and snippets.

@tonysun83
Created September 25, 2014 18:40
Show Gist options
  • Save tonysun83/8eea12628e78c8d6d89a to your computer and use it in GitHub Desktop.
Save tonysun83/8eea12628e78c8d6d89a to your computer and use it in GitHub Desktop.
case dreyfus_fabric_search:go(DbName, DDoc, IndexName, QueryArgs) of
{being_stream, From, Ref}->
{ok, Resp} = start_json_response(Req, 200),
dreyfus_index:send_all_hits(From, Ref, Resp, Req), % WE BLOCK AND WAIT UNTIL STREAM OF HITS IS COMPLETE
end_json_response(Resp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment