With this change, it is unable to create index if the data directory with OS system is in separated disk.
tempfile.into_temp_path().persist(full_path)?;
This line trying to create a hard link to /tmp/ directory (/tmp directory is in system disk)
Error message:
PathPersistError { error: Os { code: 18, kind: Other, message: "Invalid cross-device link" }, path: "/tmp/.tmp6JJxbQ" }
As reported by @raultang on https://github.com/tantivy-search/tantivy/pull/866