# File lib/riddle/client.rb, line 421 def keywords(query, index, return_hits = false) response = Response.new request( :keywords, keywords_message(query, index, return_hits) ) (0...response.next_int).collect do hash = {} hash[:tokenised] = response.next hash[:normalised] = response.next if return_hits hash[:docs] = response.next_int hash[:hits] = response.next_int end hash end end