Navigation Menu

Skip to content

Commit

Permalink
search: fix a bug that search doesn't return error response with "rec…
Browse files Browse the repository at this point in the history
…ords" output
  • Loading branch information
kou committed Apr 8, 2014
1 parent 574d95c commit de6fa15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/droonga/plugins/search.rb
Expand Up @@ -65,6 +65,9 @@ def collect_elements(message, elements)
# I have to apply it at first, before "limit" and "offset" are applied.
body = message.body
value = message.value

return if value.nil?

count_mapper = elements["count"]
if count_mapper
if count_mapper["no_output"]
Expand Down

0 comments on commit de6fa15

Please sign in to comment.