Implemented auto increment versioning while indexing

Signed-off-by: Seemant Rajvanshi <seemant.rajvanshi@gmail.com>