doc: add docs for ensure index.