Add hash file to index and detect duplicate pdf on multiple import