Set limit on index size

Hi!

I need set limit on size of index, but I not found this in documentation. Can I do it? How?

You can use the rollover API for this.

I reading this man page, but it's not what I want achived. I don't want clearing old docs. I need stopt writing docs into index if limit is reached.

Can you give an example?

ES does not have that capability.