I'm new to Elasticsearch and i'm trying to get a single field value with an ID.
LOG.info("Starte Client für Verbindung zum Elasticsearch-Server:");
Client client = TransportClient.builder().build()
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
getResponse.getField("xmldata").getValues() which will return a list of values.. presume this is what you want? I don't know what your documents look like either, so I'm not even sure if you have the "xmldata" field or if its just part of xml that is part of a larger single string field.
And now i just want the xml-part here. I've tried many things but everytime i get the NullPointer - Error
LOG.info("Starte Client für Verbindung zum Elasticsearch-Server:");
Client client = TransportClient.builder().build()
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.