The problem is in either case, I see no new index or anything. On Tuesday, March 24, 2015 at 11:43:49 PM UTC-4, Sai Asuka wrote: > > I am using elasticsearch java client, indexing a document "looks" simple. > I know 100% my cluster is running, and my name is create. > > Node node = nodeBuilder().clusterName("mycluster").node(); > > Client client = node.client(); > > String json = "{" + > > "\"user\":\"kimchy\"," + > > "\"postDate\":\"2013-01-30\"," + > > "\"message\":\"trying out Elasticsearch\"" + > > "}"; > > > IndexResponse response = client.prepareIndex("twitter", "tweet") > > .setSource(json) > > .execute() > > .actionGet(); > > I read somewhere that you should shove ".client(true)", but I get: > > > org.elasticsearch.discovery.MasterNotDiscoveredException > > What gives? >
-- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4c62ee1f-6224-4749-bd28-16e47a200b09%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.