diff --git a/plugin.xml b/plugin.xml
index b230c14..9c01dc5 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,12 +3,13 @@
com.fr.plugin.db.es.v10
yes
- 1.1
+ 1.2
10.0
2019-10-25
fanruan.richie
[2020-01-02]完成插件大部分功能,正式发布。
[2019-12-31]初始化插件。
]]>
diff --git a/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java b/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java
index 5a2863f..76922cd 100644
--- a/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java
+++ b/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java
@@ -148,7 +148,7 @@ public class ElasticsearchTableData extends BaseTableData {
}
} if ("Script".equals(tmpName)) {
if ((tmpVal = reader.getElementValue()) != null) {
- this.setQuery(tmpVal);
+ this.setScript(tmpVal);
}
} else if (ConfigAttribute.XML_TAG.equals(tmpName)) {
configAttribute.set((ConfigAttribute) XmlKit.readXMLable(reader));
@@ -169,7 +169,7 @@ public class ElasticsearchTableData extends BaseTableData {
XmlKit.writeXMLable(writer, configAttribute.get(), ConfigAttribute.XML_TAG);
}
writer.startTAG("Query").textNode(getQuery()).end();
- writer.startTAG("Script").textNode(getQuery()).end();
+ writer.startTAG("Script").textNode(getScript()).end();
writer.startTAG("Attr");
writer.attr("endPoint", getEndPoint());
writer.attr("converterType", getConverterType().toInt());