検索
  messages = Groonga["Messages"]
  result = messages.select do |record|
    record["subject"].match(query) |
      record["body"].match(query)
  end
  result.sort([["_score", :desc]]).each do |message|
    puts "#{message.subject} (#{message.score})"
  end