0

I'm using elasticsearch client for node js (working with elastic 2.x), and I want to avoid the exception that is thrown when the maximum number of documents allowed per index is exceeded. I could not find the name of the exception anywhere, so if possible, I would like to get the number of documents in the index at the same query where I POST data to db. Otherwise I will need to run a separate count query before or after each POST. Any type of solution will be appreciated.

Mister_L
  • 2,469
  • 6
  • 30
  • 64
  • can you post your exception and this might help. Size of indices are not limited. http://stackoverflow.com/questions/28841221/what-is-the-maximum-elasticsearch-document-size. https://www.quora.com/What-is-the-maximum-size-an-index-can-store-in-Elasticsearch-What-is-the-maximum-size-of-the-document – user3775217 Mar 12 '17 at 09:28
  • I didn't get this exception, I just want to avoid it – Mister_L Mar 12 '17 at 09:39

0 Answers0