re-index only when index files are modified