apache / apache/lucene

try to refactor main stem() loop of Hunspell stemmer [LUCENE-5829]

Open
#6,891 0 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

As pointed out by Ryan on #6888

This is the most complicated part, basically intersecting against 3 FSTs. But currently its premature to try to fix: its incomplete. it doesn't yet implement all the features it needs like decomposition. After we do this, we should see if we can refactor logic (e.g. somehow share affix compatibility better and so on).

---
Migrated from [LUCENE-5829](https://issues.apache.org/jira/browse/LUCENE-5829) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

Start by reading the context in #6888 and the Hunspell stemmer's main stem() loop, which currently intersects three FSTs. Confirm that decomposition and the other required features are implemented before attempting the refactor; done means the completed logic has a clearer structure with shared affix compatibility where appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.