Dedupe notes before constructing index.