apache / apache/lucene

Possible bug in StemmerOverrideFilter / FST [LUCENE-6977]

Open
#8,034 3 comments 0 reactions 0 assignees View on GitHub
affects-version:5.4 legacy-jira-priority:Minor module:analysis type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

We ran across an issue in a custom token filter that like the StemmerOverrideFilter relies on the FST. The issue is reproducible in the StemmerOverrideFilter. I am not sure whether it is a real problem in the FST.

Attached a patch with a unit test that is going to fail. It uses random input with some code from commons-lang3.

---
Migrated from [LUCENE-6977](https://issues.apache.org/jira/browse/LUCENE-6977) by Markus Jelsma, updated Mar 07 2018
Attachments: [LUCENE-6977.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6977/LUCENE-6977.patch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.