我试图重新创建您的情况,并通过其他方法使用.setscript方法来解决。
您的更新请求现在看起来像:
client.prepareUpdate(index, ElasticSearchConstants.TYPE_END_USER,id).setscript("ctx._source.location =" + json).execute().actionGet()希望对您有帮助。

我试图重新创建您的情况,并通过其他方法使用.setscript方法来解决。
您的更新请求现在看起来像:
client.prepareUpdate(index, ElasticSearchConstants.TYPE_END_USER,id).setscript("ctx._source.location =" + json).execute().actionGet()希望对您有帮助。