私はelasticsearchからJavaのGET APIを使用してデータを取得しようとしています。しかし、私はIndexMisingExceptionを取得し続けます。ElasticSearch IndexMissingException prepareGetを使用中
Exception in thread "main" org.elasticsearch.indices.IndexMissingException: [logstash-*] missing at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:768) at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:691) at org.elasticsearch.cluster.metadata.MetaData.concreteSingleIndex(MetaData.java:748) at org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction.<init>(TransportShardSingleOperationAction.java:139) at org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction.<init>(TransportShardSingleOperationAction.java:116) at org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction.doExecute(TransportShardSingleOperationAction.java:89) at org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction.doExecute(TransportShardSingleOperationAction.java:55) at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75) at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:98) at org.elasticsearch.client.support.AbstractClient.get(AbstractClient.java:193) at org.elasticsearch.action.get.GetRequestBuilder.doExecute(GetRequestBuilder.java:201) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65) at elasticConnection.ClientElastic.main(ClientElastic.java:18)
私はelasticsearchにインデックスを持っています。
health status **index** pri rep docs.count docs.deleted store.size pri.store.size yellow open **events** 5 1 39 0 48.7kb 48.7kb yellow open **logstash-2016.03.30** 5 1 152 0 137.8kb 137.8kb
助けてください。
インデックスのマッピングを確認しましたか? – Satya
@Satyaこれは私が "_index" 使用していますものです: "イベント"、 "_type": "ログ"、 "_id": "AVPKTE_DpbJsjiEptPkh"、 "_score":1、 と、これは何を私は使用しています \t \t GetResponse getResponse = client.prepareGet( "events"、 "logs"、 "*")。execute()。actionGet(); 私はelasticsearchの新しいですので、私は正しいです。 –