File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/main/java/org/ansj/elasticsearch/index/config Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 44
55 <groupId >org.ansj</groupId >
66 <artifactId >elasticsearch-analysis-ansj</artifactId >
7- <version >5.6.14.0 </version >
7+ <version >5.6.14.1 </version >
88 <description >elasticsearch analysis by ansj</description >
99 <name >elasticsearch-analysis-ansj</name >
1010 <url >http://maven.nlpcn.org</url >
Original file line number Diff line number Diff line change @@ -133,28 +133,33 @@ private void initDic() {
133133 if (sm != null ) {
134134 sm .checkPermission (new SpecialPermission ());
135135 }
136- for (String k : MyStaticValue .ENV .keySet ()) {
136+ for (String k : MyStaticValue .ENV .keySet (). toArray ( new String [ 0 ]) ) {
137137 if (k .startsWith (DicLibrary .DEFAULT )) {
138+ DicLibrary .keys ().removeIf (k ::equals );
138139 AccessController .doPrivileged ((PrivilegedAction <Void >) () -> {
139140 DicLibrary .get (k );
140141 return null ;
141142 });
142143 } else if (k .startsWith (StopLibrary .DEFAULT )) {
144+ StopLibrary .keys ().removeIf (k ::equals );
143145 AccessController .doPrivileged ((PrivilegedAction <Void >) () -> {
144146 StopLibrary .get (k );
145147 return null ;
146148 });
147149 } else if (k .startsWith (SynonymsLibrary .DEFAULT )) {
150+ SynonymsLibrary .keys ().removeIf (k ::equals );
148151 AccessController .doPrivileged ((PrivilegedAction <Void >) () -> {
149152 SynonymsLibrary .get (k );
150153 return null ;
151154 });
152155 } else if (k .startsWith (AmbiguityLibrary .DEFAULT )) {
156+ AmbiguityLibrary .keys ().removeIf (k ::equals );
153157 AccessController .doPrivileged ((PrivilegedAction <Void >) () -> {
154158 AmbiguityLibrary .get (k );
155159 return null ;
156160 });
157161 } else if (k .startsWith (CrfLibrary .DEFAULT )) {
162+ CrfLibrary .keys ().removeIf (k ::equals );
158163 AccessController .doPrivileged ((PrivilegedAction <Void >) () -> {
159164 CrfLibrary .get (k );
160165 return null ;
You can’t perform that action at this time.
0 commit comments