24
24
import com .ibm .icu .util .ULocale ;
25
25
import org .apache .lucene .analysis .TokenStream ;
26
26
import org .apache .lucene .collation .ICUCollationKeyFilter ;
27
- import org .elasticsearch .ElasticSearchIllegalArgumentException ;
27
+ import org .elasticsearch .ElasticsearchIllegalArgumentException ;
28
28
import org .elasticsearch .common .inject .Inject ;
29
29
import org .elasticsearch .common .inject .assistedinject .Assisted ;
30
30
import org .elasticsearch .common .settings .Settings ;
@@ -63,15 +63,15 @@ public IcuCollationTokenFilterFactory(Index index, @IndexSettings Settings index
63
63
} catch (FailedToResolveConfigException e ) {
64
64
failureToResolve = e ;
65
65
} catch (IOException e ) {
66
- throw new ElasticSearchIllegalArgumentException ("Failed to load collation rules" , e );
66
+ throw new ElasticsearchIllegalArgumentException ("Failed to load collation rules" , e );
67
67
}
68
68
try {
69
69
collator = new RuleBasedCollator (rules );
70
70
} catch (Exception e ) {
71
71
if (failureToResolve != null ) {
72
- throw new ElasticSearchIllegalArgumentException ("Failed to resolve collation rules location" , failureToResolve );
72
+ throw new ElasticsearchIllegalArgumentException ("Failed to resolve collation rules location" , failureToResolve );
73
73
} else {
74
- throw new ElasticSearchIllegalArgumentException ("Failed to parse collation rules" , e );
74
+ throw new ElasticsearchIllegalArgumentException ("Failed to parse collation rules" , e );
75
75
}
76
76
}
77
77
} else {
@@ -109,7 +109,7 @@ public IcuCollationTokenFilterFactory(Index index, @IndexSettings Settings index
109
109
} else if (strength .equalsIgnoreCase ("identical" )) {
110
110
collator .setStrength (Collator .IDENTICAL );
111
111
} else {
112
- throw new ElasticSearchIllegalArgumentException ("Invalid strength: " + strength );
112
+ throw new ElasticsearchIllegalArgumentException ("Invalid strength: " + strength );
113
113
}
114
114
}
115
115
@@ -121,7 +121,7 @@ public IcuCollationTokenFilterFactory(Index index, @IndexSettings Settings index
121
121
} else if (decomposition .equalsIgnoreCase ("canonical" )) {
122
122
collator .setDecomposition (Collator .CANONICAL_DECOMPOSITION );
123
123
} else {
124
- throw new ElasticSearchIllegalArgumentException ("Invalid decomposition: " + decomposition );
124
+ throw new ElasticsearchIllegalArgumentException ("Invalid decomposition: " + decomposition );
125
125
}
126
126
}
127
127
@@ -134,7 +134,7 @@ public IcuCollationTokenFilterFactory(Index index, @IndexSettings Settings index
134
134
} else if (alternate .equalsIgnoreCase ("non-ignorable" )) {
135
135
rbc .setAlternateHandlingShifted (false );
136
136
} else {
137
- throw new ElasticSearchIllegalArgumentException ("Invalid alternate: " + alternate );
137
+ throw new ElasticsearchIllegalArgumentException ("Invalid alternate: " + alternate );
138
138
}
139
139
}
140
140
@@ -150,7 +150,7 @@ public IcuCollationTokenFilterFactory(Index index, @IndexSettings Settings index
150
150
} else if (caseFirst .equalsIgnoreCase ("upper" )) {
151
151
rbc .setUpperCaseFirst (true );
152
152
} else {
153
- throw new ElasticSearchIllegalArgumentException ("Invalid caseFirst: " + caseFirst );
153
+ throw new ElasticsearchIllegalArgumentException ("Invalid caseFirst: " + caseFirst );
154
154
}
155
155
}
156
156
0 commit comments