add param api, for use version apis. fix crush, if exist closed indexes

Add param api for use multi version elasticsearch
* 1 - 1.0.x
* 0 - 0.90.x

fix crush, if exist closed indexes