From 303e8d0127f5b41aad4ba91b622001b6a73a7c3f Mon Sep 17 00:00:00 2001 From: yinbp Date: Tue, 3 Nov 2020 14:14:19 +0800 Subject: [PATCH] fixed bug #34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 获取索引表字段信息时报错org.frameworkset.elasticsearch.ElasticSearchException: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String --- .../org/frameworkset/elasticsearch/entity/IndexField.java | 6 +++--- .../org/frameworkset/elasticsearch/client/BuildTool.java | 2 +- bboss-elasticsearch-spring-boot-starter/build.gradle | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bboss-elasticsearch-rest-entity/src/main/java/org/frameworkset/elasticsearch/entity/IndexField.java b/bboss-elasticsearch-rest-entity/src/main/java/org/frameworkset/elasticsearch/entity/IndexField.java index 0cf4b103..b2b87ef1 100644 --- a/bboss-elasticsearch-rest-entity/src/main/java/org/frameworkset/elasticsearch/entity/IndexField.java +++ b/bboss-elasticsearch-rest-entity/src/main/java/org/frameworkset/elasticsearch/entity/IndexField.java @@ -16,7 +16,7 @@ public class IndexField implements Serializable { private String normalizer; private Object boost; private Boolean coerce; - private String copyTo; + private Object copyTo; private Boolean docValues; private Boolean dynamic; private Boolean enabled; @@ -75,11 +75,11 @@ public void setCoerce(Boolean coerce) { this.coerce = coerce; } - public String getCopyTo() { + public Object getCopyTo() { return copyTo; } - public void setCopyTo(String copyTo) { + public void setCopyTo(Object copyTo) { this.copyTo = copyTo; } diff --git a/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/BuildTool.java b/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/BuildTool.java index 56e95236..2bba1819 100644 --- a/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/BuildTool.java +++ b/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/BuildTool.java @@ -2393,7 +2393,7 @@ public static IndexField buildIndexField(Map.Entry field,List