title: Huge database indexing elasticsearch
body: <p>I'm trying to index a database with over 1 million posts using elasticsearch the problem I'm having is that due to the amount of data the indexing crashes</p>
  
  <p>is it possible to do the indexing  in parts or is this something that should not crash and I'm just doing something wrong?</p>
  
  <p>I'm using Elastica (<a href="https://github.com/ruflin/Elastica" rel="nofollow">https://github.com/ruflin/Elastica</a>)</p>
  
  <p>---- edit ----</p>
  
  <p>forgot to add some errors, this is what I get and after that nothing happens</p>
  
  <pre><code>Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered "&lt;EOF&gt;" at line 1, column 5.
  Was expecting one of:
      &lt;BAREOPER&gt; ...
      "(" ...
      "*" ...
      &lt;QUOTED&gt; ...
      &lt;TERM&gt; ...
      &lt;PREFIXTERM&gt; ...
      &lt;WILDTERM&gt; ...
      &lt;REGEXPTERM&gt; ...
      "[" ...
      "{" ...
      &lt;NUMBER&gt; ...
  
      at org.apache.lucene.queryparser.classic.QueryParser.generateParseException(QueryParser.java:708)
      at org.apache.lucene.queryparser.classic.QueryParser.jj_consume_token(QueryParser.java:590)
      at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:275)
      at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:181)
      at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:170)
      at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:121)
      ... 18 more
  </code></pre>