apache / apache/lucene

Code cleanup on KStemmer [LUCENE-5358]

Open
#6,422 0 comments 0 reactions 0 assignees View on GitHub
affects-version:3.0 affects-version:4.5 affects-version:4.5.1 affects-version:4.6 legacy-jira-priority:Minor module:analysis type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

This affects all versions with KStemmer in them

The code of KStemmer needs some intensive cleanup, just to give you some idea on something that immediately popped up:

https://github.com/apache/lucene-solr/blob/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemmer.java#L283-286

I'll be happy to do this myself, just wanted to check in advance to see if this is something you'd consider accepting in

---
Migrated from [LUCENE-5358](https://issues.apache.org/jira/browse/LUCENE-5358) by Itamar Syn-Hershko

Contributor guide

Open the contributing guide

Research direction

Start with lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemmer.java, especially the linked lines 283-286, and review the surrounding implementation. The issue does not define specific cleanup tasks or completion criteria, so establish those before changing code.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.