Can't retrieve specific documents from index, although could searched them

Hi all,

When I make a search against my index, I could get some documents hit.
While when I attempt to retrieve them using prepareGet API from the
index,some exceptions were thrown.

org.elasticsearch.ElasticSearchException: Failed to get type [kba] and id
[1322080260-2cf0b0986e7287fc0499815e336ff609]
at
org.elasticsearch.index.get.ShardGetService.innerGetLoadFromStoredFields(ShardGetService.java:289)
at
org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:178)
at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:96)
at
org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:102)
at
org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:42)
at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$ShardTransportHandler.messageReceived(TransportShardSingleOperationAction.java:253)
at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$ShardTransportHandler.messageReceived(TransportShardSingleOperationAction.java:239)
at
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:268)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: Corrupted:
docID=609357, docBase=0, chunkDocs=0, numDocs=685780
at
org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.visitDocument(CompressingStoredFieldsReader.java:203)
at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:140)
at
org.elasticsearch.index.get.ShardGetService.innerGetLoadFromStoredFields(ShardGetService.java:287)
... 10 more

It seems that the document is corrupted in the index?
Besides, I try to search using head_master, which returns “Searched 9 of 10
shards. 1 hits. 0.056 seconds”。

how to resolve this problem? Thanks.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Phew! can you provide some more infos like ES version and if you see any
other errors in the logs like TooManyOpenFiles or something similar?

simon

On Friday, August 23, 2013 10:38:12 AM UTC+2, Jingang Wang wrote:

Hi all,

When I make a search against my index, I could get some documents hit.
While when I attempt to retrieve them using prepareGet API from the
index,some exceptions were thrown.

org.elasticsearch.ElasticSearchException: Failed to get type [kba] and id
[1322080260-2cf0b0986e7287fc0499815e336ff609]
at
org.elasticsearch.index.get.ShardGetService.innerGetLoadFromStoredFields(ShardGetService.java:289)
at
org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:178)
at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:96)
at
org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:102)
at
org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:42)
at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$ShardTransportHandler.messageReceived(TransportShardSingleOperationAction.java:253)
at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$ShardTransportHandler.messageReceived(TransportShardSingleOperationAction.java:239)
at
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:268)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.lucene.index.CorruptIndexException: Corrupted:
docID=609357, docBase=0, chunkDocs=0, numDocs=685780
at
org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.visitDocument(CompressingStoredFieldsReader.java:203)
at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:140)
at
org.elasticsearch.index.get.ShardGetService.innerGetLoadFromStoredFields(ShardGetService.java:287)
... 10 more

It seems that the document is corrupted in the index?
Besides, I try to search using head_master, which returns “Searched 9 of
10 shards. 1 hits. 0.056 seconds”。

how to resolve this problem? Thanks.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.