Sunday, 12 March 2017

elasticsearch - count items after post

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.



via Mister_L

No comments:

Post a Comment