Authored by Gino Zhang

修改conversion索引中的字段名

@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 "enabled": true 7 "enabled": true
8 }, 8 },
9 "properties": { 9 "properties": {
10 - "source": { 10 + "keyword": {
11 "type": "string", 11 "type": "string",
12 "index": "ik_complex", 12 "index": "ik_complex",
13 "search_analyzer": "ik_complex" 13 "search_analyzer": "ik_complex"
@@ -8,15 +8,15 @@ public class ConversionBO implements Serializable { @@ -8,15 +8,15 @@ public class ConversionBO implements Serializable {
8 8
9 private Integer id; 9 private Integer id;
10 10
11 - private String source; 11 + private String keyword;
12 12
13 private String dest; 13 private String dest;
14 14
15 public ConversionBO(){} 15 public ConversionBO(){}
16 16
17 - public ConversionBO(Integer id, String source, String dest){ 17 + public ConversionBO(Integer id, String keyword, String dest){
18 this.id = id; 18 this.id = id;
19 - this.source = source; 19 + this.keyword = keyword;
20 this.dest = dest; 20 this.dest = dest;
21 } 21 }
22 22
@@ -28,12 +28,12 @@ public class ConversionBO implements Serializable { @@ -28,12 +28,12 @@ public class ConversionBO implements Serializable {
28 this.id = id; 28 this.id = id;
29 } 29 }
30 30
31 - public String getSource() {  
32 - return source; 31 + public String getKeyword() {
  32 + return keyword;
33 } 33 }
34 34
35 - public void setSource(String source) {  
36 - this.source = source; 35 + public void setKeyword(String keyword) {
  36 + this.keyword = keyword;
37 } 37 }
38 38
39 public String getDest() { 39 public String getDest() {