Elasticsearch reindex JSON::ParserError
<p>I was using <code>Elasticsearch</code> with Rails. </p>

<p>I type <code>User.reindex</code>, it works fine at beginning, but it threw this error in the halfway.</p>

<pre><code>User Load (7.7ms)  SELECT `users`.* FROM `users` WHERE (`users`.`id` &gt; 217316) ORDER BY `users`.`id` ASC LIMIT 1000
User Load (4.8ms)  SELECT `users`.* FROM `users` WHERE (`users`.`id` &gt; 218316) ORDER BY `users`.`id` ASC LIMIT 1000
User Load (1.4ms)  SELECT `users`.* FROM `users` WHERE (`users`.`id` &gt; 219317) ORDER BY `users`.`id` ASC LIMIT 1000
JSON::ParserError: 795: unexpected token at ''
from /Users/Coda/.rvm/gems/ruby-2.1.10@rails320/gems/json-1.8.3/lib/json/common.rb:155:in `parse'
</code></pre>

<p>I think there are some records of <code>user</code> are broken. </p>

<p>Can <code>elasticsearch</code> show the process of <code>reindex</code> step by step?</p>

<h2>Update</h2>

<p><code>localhost:9200</code> prints this </p>

<pre><code>{
  "name" : "dMw7BW5",
  "cluster_name" : "elasticsearch_my_username",
  "cluster_uuid" : "cuQbjyM4S42sWpcHzDR9sQ",
  "version" : {
    "number" : "5.0.1",
    "build_hash" : "080bb47",
    "build_date" : "2016-11-11T22:08:49.812Z",
    "build_snapshot" : false,
    "lucene_version" : "6.2.1"
  },
  "tagline" : "You Know, for Search"
}
</code></pre>