Add index for embedding document.