batch inset records into elasticsearch