title: elasticsearch-rails empty results
body: <p>I already did <code>Comment.import</code> and it returned 0, which means there were no errors during the import process.</p>
  
  <p>I already did <code>Comment.__elasticsearch__.refresh_index!</code></p>
  
  <p>This is the model I'm using:</p>
  
  <pre><code>require "datamapper_adapter"
  
  class Comment
    include DataMapper::Resource
  
    include Elasticsearch::Model
  
    property :id, Serial
    property :email, String
    property :author, String
    property :description, String
    property :created_at, DateTime
  
    belongs_to :picture
  
    validates_presence_of :email, :author, :description
  
    settings index: { number_of_shards: 1 } do
      mappings dynamic: 'false' do
        indexes :id, analyzer: 'english', index_options: 'offsets'
        indexes :author, analyzer: 'english', index_options: 'offsets'
        indexes :description, analyzer: 'english', index_options: 'offsets'
      end
    end
  
    def as_indexed_json(options={})
      as_json.except("picture_id", "created_at", "email", "_persistence_state", "_repository", "_id")
    end
  end
  </code></pre>
  
  <p>And still all my queries to the elasticsearch return an empty array as hits.</p>
  
  <pre><code>curl -XPOST 'http://localhost:9200/comments/comment/_search?pretty
  {
      "took" : 35,
      "timed_out" : false,
      "_shards" : {
      "total" : 5,
      "successful" : 5,
      "failed" : 0
    },
      "hits" : {
      "total" : 0,
      "max_score" : null,
      "hits" : [ ]
    }
  }
  </code></pre>
  
  <p>I have data in my DB but I have no idea why it never gets filtered.
  Any ideas why this is happening? This is driving me nuts</p>
  
  <p>No matter what I do, hits is ALWAYS empty</p>