@@ -101,6 +101,45 @@ public AnalysisService(Index index) {
101
101
analyzerProviders .put ("defaultSearch" , analyzerProviders .get ("default" ));
102
102
}
103
103
104
+ // extended analyzers defaults
105
+ if (!analyzerProviders .containsKey ("arabic" )) {
106
+ analyzerProviders .put ("arabic" , new ArabicAnalyzerProvider (index , indexSettings , "arabic" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
107
+ }
108
+ if (!analyzerProviders .containsKey ("brazilian" )) {
109
+ analyzerProviders .put ("brazilian" , new BrazilianAnalyzerProvider (index , indexSettings , "brazilian" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
110
+ }
111
+ if (!analyzerProviders .containsKey ("chinese" )) {
112
+ analyzerProviders .put ("chinese" , new ChineseAnalyzerProvider (index , indexSettings , "chinese" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
113
+ }
114
+ if (!analyzerProviders .containsKey ("cjk" )) {
115
+ analyzerProviders .put ("cjk" , new ChineseAnalyzerProvider (index , indexSettings , "cjk" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
116
+ }
117
+ if (!analyzerProviders .containsKey ("czech" )) {
118
+ analyzerProviders .put ("czech" , new CzechAnalyzerProvider (index , indexSettings , "czech" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
119
+ }
120
+ if (!analyzerProviders .containsKey ("dutch" )) {
121
+ analyzerProviders .put ("dutch" , new DutchAnalyzerProvider (index , indexSettings , "dutch" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
122
+ }
123
+ if (!analyzerProviders .containsKey ("french" )) {
124
+ analyzerProviders .put ("french" , new FrenchAnalyzerProvider (index , indexSettings , "french" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
125
+ }
126
+ if (!analyzerProviders .containsKey ("german" )) {
127
+ analyzerProviders .put ("german" , new GermanAnalyzerProvider (index , indexSettings , "german" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
128
+ }
129
+ if (!analyzerProviders .containsKey ("greek" )) {
130
+ analyzerProviders .put ("greek" , new GreekAnalyzerProvider (index , indexSettings , "greek" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
131
+ }
132
+ if (!analyzerProviders .containsKey ("persian" )) {
133
+ analyzerProviders .put ("persian" , new PersianAnalyzerProvider (index , indexSettings , "persian" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
134
+ }
135
+ if (!analyzerProviders .containsKey ("russian" )) {
136
+ analyzerProviders .put ("russian" , new RussianAnalyzerProvider (index , indexSettings , "russian" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
137
+ }
138
+ if (!analyzerProviders .containsKey ("thai" )) {
139
+ analyzerProviders .put ("thai" , new ThaiAnalyzerProvider (index , indexSettings , "thai" , ImmutableSettings .Builder .EMPTY_SETTINGS ));
140
+ }
141
+
142
+
104
143
this .analyzerProviders = ImmutableMap .copyOf (analyzerProviders );
105
144
106
145
Map <String , NamedAnalyzer > analyzers = newHashMap ();
0 commit comments