Better error reporting StemmerOverrideFilterFactory [LUCENE-4545]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
If the dictionary contains an error such as a space instead of a tab somewhere in the dictionary it is hard to find the error in a long dictionary. This patch includes the file and line number in the exception, helping to debug it quickly.
---
Migrated from [LUCENE-4545](https://issues.apache.org/jira/browse/LUCENE-4545) by Markus Jelsma, updated Mar 12 2018
Attachments: [LUCENE-4545.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4545/LUCENE-4545.patch), [LUCENE-4545-trunk-1.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4545/LUCENE-4545-trunk-1.patch)
Contributor guide
Research direction
Start with StemmerOverrideFilterFactory and the attached LUCENE-4545 patches. Reproduce the malformed dictionary case described in the issue, then verify that the resulting exception identifies the dictionary file and line number so the faulty entry can be located quickly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100