Hunspell and suggester should make their temp dir configurable [LUCENE-5655]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Both the hunspell dictionary and search suggesters use `OfflineSorter`. However, the constructor they use always uses java.io.tmpdir (and will fail if the tmpdir does not already exist).
Both of these should have constructors that allow passing in the tmpdir to use.
---
Migrated from [LUCENE-5655](https://issues.apache.org/jira/browse/LUCENE-5655) by Ryan Ernst (@rjernst)
Contributor guide
Research direction
Locate the Hunspell dictionary and search suggester code that construct OfflineSorter, then inspect the OfflineSorter constructor they currently use. Add constructor options for the temporary directory in both components, and verify that callers can select the directory rather than relying on java.io.tmpdir.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100