File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
src/main/java/org/ansj/elasticsearch/action Expand file tree Collapse file tree 2 files changed +7
-8
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 >6.2.2.1 </version >
7+ <version >6.2.2.2 </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 @@ -209,13 +209,12 @@ private AnsjResponse executeAnalyzer(AnsjRequest request) {
209209 * 显示全部配置
210210 */
211211 private AnsjResponse showConfig () {
212- Map <String , Object > map = new HashMap <>();
213- map .putAll (MyStaticValue .ENV );
214- map .put ("dic" , DicLibrary .keys ());
215- map .put ("stop" , StopLibrary .keys ());
216- map .put ("synonyms" , SynonymsLibrary .keys ());
217- map .put ("ambiguity" , AmbiguityLibrary .keys ());
218- map .put ("crf" , CrfLibrary .keys ());
212+ Map <String , Object > map = new HashMap <>(MyStaticValue .ENV );
213+ map .put ("dic" , DicLibrary .keys ().toArray ());
214+ map .put ("stop" , StopLibrary .keys ().toArray ());
215+ map .put ("synonyms" , SynonymsLibrary .keys ().toArray ());
216+ map .put ("ambiguity" , AmbiguityLibrary .keys ().toArray ());
217+ map .put ("crf" , CrfLibrary .keys ().toArray ());
219218 return new AnsjResponse (map );
220219 }
221220
You can’t perform that action at this time.
0 commit comments