Skip to content

Commit ed3b44f

Browse files
Handle TokenizerFactory TODOs (#32063)
* Don't replace Replace TokenizerFactory with Supplier, this approach was rejected in #32063 * Remove unused parameter from constructor
1 parent a7e4771 commit ed3b44f

File tree

22 files changed

+22
-23
lines changed

22 files changed

+22
-23
lines changed

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/CharGroupTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class CharGroupTokenizerFactory extends AbstractTokenizerFactory{
3939
private boolean tokenizeOnSymbol = false;
4040

4141
public CharGroupTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
42-
super(indexSettings, name, settings);
42+
super(indexSettings, settings);
4343

4444
for (final String c : settings.getAsList("tokenize_on_chars")) {
4545
if (c == null || c.length() == 0) {

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/ClassicTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ClassicTokenizerFactory extends AbstractTokenizerFactory {
3535
private final int maxTokenLength;
3636

3737
ClassicTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
38-
super(indexSettings, name, settings);
38+
super(indexSettings, settings);
3939
maxTokenLength = settings.getAsInt("max_token_length", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);
4040
}
4141

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/EdgeNGramTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class EdgeNGramTokenizerFactory extends AbstractTokenizerFactory {
3636
private final CharMatcher matcher;
3737

3838
EdgeNGramTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
39-
super(indexSettings, name, settings);
39+
super(indexSettings, settings);
4040
this.minGram = settings.getAsInt("min_gram", NGramTokenizer.DEFAULT_MIN_NGRAM_SIZE);
4141
this.maxGram = settings.getAsInt("max_gram", NGramTokenizer.DEFAULT_MAX_NGRAM_SIZE);
4242
this.matcher = parseTokenChars(settings.getAsList("token_chars"));

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/KeywordTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class KeywordTokenizerFactory extends AbstractTokenizerFactory {
3131
private final int bufferSize;
3232

3333
KeywordTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
34-
super(indexSettings, name, settings);
34+
super(indexSettings, settings);
3535
bufferSize = settings.getAsInt("buffer_size", 256);
3636
}
3737

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/LetterTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class LetterTokenizerFactory extends AbstractTokenizerFactory {
3030

3131
LetterTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
32-
super(indexSettings, name, settings);
32+
super(indexSettings, settings);
3333
}
3434

3535
@Override

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/LowerCaseTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public class LowerCaseTokenizerFactory extends AbstractTokenizerFactory implements MultiTermAwareComponent {
3131

3232
LowerCaseTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
33-
super(indexSettings, name, settings);
33+
super(indexSettings, settings);
3434
}
3535

3636
@Override

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/NGramTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static CharMatcher parseTokenChars(List<String> characterClasses) {
8585
}
8686

8787
NGramTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
88-
super(indexSettings, name, settings);
88+
super(indexSettings, settings);
8989
int maxAllowedNgramDiff = indexSettings.getMaxNgramDiff();
9090
this.minGram = settings.getAsInt("min_gram", NGramTokenizer.DEFAULT_MIN_NGRAM_SIZE);
9191
this.maxGram = settings.getAsInt("max_gram", NGramTokenizer.DEFAULT_MAX_NGRAM_SIZE);

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/PathHierarchyTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class PathHierarchyTokenizerFactory extends AbstractTokenizerFactory {
3737
private final boolean reverse;
3838

3939
PathHierarchyTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
40-
super(indexSettings, name, settings);
40+
super(indexSettings, settings);
4141
bufferSize = settings.getAsInt("buffer_size", 1024);
4242
String delimiter = settings.get("delimiter");
4343
if (delimiter == null) {

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/PatternTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class PatternTokenizerFactory extends AbstractTokenizerFactory {
3535
private final int group;
3636

3737
PatternTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
38-
super(indexSettings, name, settings);
38+
super(indexSettings, settings);
3939

4040
String sPattern = settings.get("pattern", "\\W+" /*PatternAnalyzer.NON_WORD_PATTERN*/);
4141
if (sPattern == null) {

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/SimplePatternSplitTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class SimplePatternSplitTokenizerFactory extends AbstractTokenizerFactory
3131
private final String pattern;
3232

3333
public SimplePatternSplitTokenizerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
34-
super(indexSettings, name, settings);
34+
super(indexSettings, settings);
3535

3636
pattern = settings.get("pattern", "");
3737
}

0 commit comments

Comments
 (0)