<NME> result.rb
<BEF> ADDFILE
<MSG> - Start working on issue/30 (refactor the search api to be pluggable)
- Updated test_elasticsearch to use the new api, passes.

<DFF> @@ -0,0 +1,20 @@
+require "logstash/namespace"
+require "logstash/logging"
+
+class LogStash::Search::Result
+  attr_accessor :events
+  attr_accessor :duration
+
+  attr_accessor :error_message
+
+  def initialize(settings={})
+    @events = []
+    @duration = nil
+    @error_message = nil
+  end
+
+  def error?
+    return !@error_message.nil?
+  end
+end # class LogStash::Search::Result
+

- Start working on issue/30 (refactor the search api to be pluggable) - Updated test_elasticsearch to use the new api, passes.