如何纠正';java.lang.NoSuchFieldException';用弹性搜索?
我在为ElasticSearch编程时收到一个错误: 警告:未能记录编写器字段java.lang.NoSuchFieldException:rollbackSegmentInfos 以下是我正在使用的代码:如何纠正';java.lang.NoSuchFieldException';用弹性搜索?,java,
elasticsearch,Java,
elasticsearch,我在为ElasticSearch编程时收到一个错误: 警告:未能记录编写器字段java.lang.NoSuchFieldException:rollbackSegmentInfos 以下是我正在使用的代码: publicstaticvoidmain(字符串[]args) { Node Node=nodeBuilder().local(true).Node(); Client Client=new TransportClient().addTransportAddress(新的InetSocket
publicstaticvoidmain(字符串[]args)
{
Node Node=nodeBuilder().local(true).Node();
Client Client=new TransportClient().addTransportAddress(新的InetSocketTransportAddress(“127.0.0.1”,9200));
字符串json=“{\'user\':\'kimchy\”,“+”\“postDate\”:\“2013-01-30\”,“\”message\“:\”尝试弹性搜索\“}”;
IndexResponse=client.prepareIndex(“testindex”,“article”).setSource(json).execute().actionGet();
}
我可以得到关于如何纠正此问题的指导吗?它给出了什么错误?你想干什么?你用什么语言编写代码?它给我一个错误警告:无法记录编写器字段java.lang.NoSuchFieldException:rollbackSegmentInfos“