Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取索引表字段信息时报错org.frameworkset.elasticsearch.ElasticSearchException: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String #34

Open
huya2010 opened this issue Nov 3, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@huya2010
Copy link

huya2010 commented Nov 3, 2020

获取索引表字段信息时报错org.frameworkset.elasticsearch.ElasticSearchException: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String

RestClientUtil->public List<IndexField> getIndexMappingFields(String index,final String indexType)->IndexField indexField = BuildTool.buildIndexField(field, fields, null)->indexField.setCopyTo((String)fieldInfo.get("copy_to"))

fieldInfo.get("copy_to")返回的是java.util.ArrayList类型,无法强转为java.lang.String类型

image

yin-bp added a commit that referenced this issue Nov 3, 2020
获取索引表字段信息时报错org.frameworkset.elasticsearch.ElasticSearchException: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
@yin-bp yin-bp self-assigned this Nov 3, 2020
@yin-bp yin-bp added the bug label Nov 3, 2020
@yin-bp yin-bp added this to the v6.2.3 milestone Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants