|
|
|
@ -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()); |
|
|
|
|