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

**URL:** <https://discuss.elastic.co/t/cant-retrieve-specific-documents-from-index-although-could-searched-them/13309>\
**Category:** Elasticsearch\
**Created:** [August 23, 2013, 8:38am UTC](https://discuss.elastic.co/t/cant-retrieve-specific-documents-from-index-although-could-searched-them/13309 "2013-08-23T08:38:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingang\_Wang](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jingang\_Wang](https://discuss.elastic.co/u/Jingang_Wang)\
**Post date:** [August 23, 2013, 8:38am UTC](https://discuss.elastic.co/t/cant-retrieve-specific-documents-from-index-although-could-searched-them/13309/1 "2013-08-23T08:38:12Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [August 23, 2013, 9:12am UTC](https://discuss.elastic.co/t/cant-retrieve-specific-documents-from-index-although-could-searched-them/13309/2 "2013-08-23T09:12:08Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:20am UTC](https://discuss.elastic.co/t/cant-retrieve-specific-documents-from-index-although-could-searched-them/13309/3 "2017-07-06T02:20:01Z")

</div>

Closed on July 6, 2017, 2:20am UTC


