apache / apache/lucene

Better error reporting StemmerOverrideFilterFactory [LUCENE-4545]

Open
#5,611 5 comments 0 reactions 0 assignees View on GitHub
affects-version:4.0 legacy-jira-fix-version:4.9 legacy-jira-fix-version:6.0 legacy-jira-priority:Trivial module:analysis type:enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.