update options format : index in place of path. refactor : rename ‘path’ by ‘index’ and remove ‘/_search’ at end.