apache / apache/lucene

Default Stopwords should use specific Version in CharArraySet construtor [LUCENE-2101]

Open
#3,177 4 comments 0 reactions 0 assignees View on GitHub
legacy-jira-fix-version:4.9 legacy-jira-fix-version:6.0 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

#3170 added a version to the constructor of CharArraySet. The default sets in \*Analyzer uses Version.LUCENE_CURRENT which currently does not do any harm. Yet, in the future changes to CharArraySet depending on the version could potentially cause index corruption if those default version are not changed. To make sure such a corruption can not happen the default sets should use a specific Version (Version.LUCENE_31)

---
Migrated from [LUCENE-2101](https://issues.apache.org/jira/browse/LUCENE-2101) by Simon Willnauer (@s1monw), updated May 09 2016
Linked issues:
- #3170

Contributor guide

Open the contributing guide

Research direction

Search the Analyzer implementations for default stopword sets constructed through CharArraySet, then read the constructor change from #3170 and the surrounding Version handling. Done means the default sets use the specific Version.LUCENE_31 rather than Version.LUCENE_CURRENT, with no remaining affected Analyzer defaults overlooked.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.