apache / apache/lucene

Please add public method Analyzer#createComponents(Analyzer analyzer, String fieldName, Reader reader) to org.apache.lucene.analysis.Analyzer [LUCENE-6323]

Open
#7,384 0 comments 0 reactions 0 assignees View on GitHub
affects-version:4.9 legacy-jira-fix-version:4.10.5 legacy-jira-priority:Major module:core/other type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Please add public method Analyzer#createComponents(Analyzer analyzer, String fieldName,
Reader reader) to org.apache.lucene.analysis.Analyzer

This required to decorate any existing analyzers. Or make existing createComponents method as public.

PS: I'm doing a migration from Lucene 2.9 to 4.9.

---
Migrated from [LUCENE-6323](https://issues.apache.org/jira/browse/LUCENE-6323) by Sekhar, updated Jun 10 2015
Environment:
```
Windows/Linux, JDK 7/8
```

Contributor guide

Open the contributing guide

Research direction

Start at org.apache.lucene.analysis.Analyzer and inspect the existing createComponents method and its callers. Determine whether exposing the requested public method or changing the existing method visibility preserves the Analyzer API; done means existing analyzers can be decorated through the supported public API without breaking compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.