# ElasticSearchException: document missing

**URL:** https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986
**Category:** Elasticsearch
**Created:** [November 28, 2011, 2:18am UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986 "2011-11-28T02:18:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)
#### Post date: [November 28, 2011, 2:18am UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/1 "2011-11-28T02:18:18Z")

</div>

I'm getting strange exception. I'm getting it when running MLT query.  
But the reason is actualy not related to MLT.  
If I run search like

[http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)

I'm getting:

{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8f","exists":false}

As if there is no document with such ID.  
But, if I run:

[http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-9a20efd55d8f)

I'm actually getting a document with such ID:

{"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":  
[{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8f","\_score":  
9.77106, "\_source" :  
{"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":.............  
the rest is truncated

What could be the problem? Why I'm not getting the document from the  
first query?

Thanks in advance,  
Eugene S.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [November 28, 2011, 8:14am UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/2 "2011-11-28T08:14:30Z")

</div>

Are you using routing or parent mapping where post is a child mapping  
(which uses routing)? If so, you need to provide the routing value when  
doing a GET.

On Mon, Nov 28, 2011 at 4:18 AM, Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info) wrote:

> I'm getting strange exception. I'm getting it when running MLT query.  
> But the reason is actualy not related to MLT.  
> If I run search like
> 
> [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> I'm getting:
> 
> {"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8f","exists":false}
> 
> As if there is no document with such ID.  
> But, if I run:
> 
> [http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> I'm actually getting a document with such ID:
> 
> {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
> 5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":
> 
> [{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8f","\_score":  
> 9.77106, "\_source" :
> 
> {"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":.............  
> the rest is truncated
> 
> What could be the problem? Why I'm not getting the document from the  
> first query?
> 
> Thanks in advance,  
> Eugene S.

---

<div class="post-metadata">

### Author: ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)
#### Post date: [November 28, 2011, 3:40pm UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/3 "2011-11-28T15:40:09Z")

</div>

I'm using just simple call like this:  
GetResponse response = clientProvider.getClient()  
.prepareGet("myind", "post", "5b92f025-3f7b-4429-8535-9a20efd55d8f")  
.execute()  
.actionGet();  
As well as  
[http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)

And actually delete gives me the same:  
All such requests (GET, DELETE) give me exist:false or document  
missing exception.  
But search (any kind, by ID or just text) returns the document.  
I've run few more tests, and this behavior is not consistent, some  
times I cannot reproduce the problem.  
But those documents which got returned by search, but not by get, I  
couldn't even get read of them, since Delete also fails to find them.  
What could be the problem? Or at least how I could force to remove  
those documents from search results?

On Nov 28, 3:14 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Are you using routing or parent mapping where post is a child mapping  
> (which uses routing)? If so, you need to provide the routing value when  
> doing a GET.
> 
> On Mon, Nov 28, 2011 at 4:18 AM, Eugene Strokin [eug...@strokin.info](mailto:eug...@strokin.info) wrote:
> 
> > I'm getting strange exception. I'm getting it when running MLT query.  
> > But the reason is actualy not related to MLT.  
> > If I run search like
> 
> > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> > I'm getting:
> 
> > {"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8 f","exists":false}
> 
> > As if there is no document with such ID.  
> > But, if I run:
> 
> > [http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-)...
> 
> > I'm actually getting a document with such ID:
> 
> > {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
> > 5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":
> 
> > [{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d 8f","\_score":  
> > 9.77106, "\_source" :
> 
> > {"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":............ .  
> > the rest is truncated
> 
> > What could be the problem? Why I'm not getting the document from the  
> > first query?
> 
> > Thanks in advance,  
> > Eugene S.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [November 28, 2011, 4:25pm UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/4 "2011-11-28T16:25:14Z")

</div>

You did not answer the question though, when you index the document, do you  
use parent mapping or routing value? If you do, you need to provide the  
value, if not, then gist a recreation.

-shay.banon

On Mon, Nov 28, 2011 at 5:40 PM, Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info) wrote:

> I'm using just simple call like this:  
> GetResponse response = clientProvider.getClient()  
> .prepareGet("myind", "post",  
> "5b92f025-3f7b-4429-8535-9a20efd55d8f")  
> .execute()  
> .actionGet();  
> As well as  
> [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> And actually delete gives me the same:  
> All such requests (GET, DELETE) give me exist:false or document  
> missing exception.  
> But search (any kind, by ID or just text) returns the document.  
> I've run few more tests, and this behavior is not consistent, some  
> times I cannot reproduce the problem.  
> But those documents which got returned by search, but not by get, I  
> couldn't even get read of them, since Delete also fails to find them.  
> What could be the problem? Or at least how I could force to remove  
> those documents from search results?
> 
> On Nov 28, 3:14 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Are you using routing or parent mapping where post is a child mapping  
> > (which uses routing)? If so, you need to provide the routing value when  
> > doing a GET.
> > 
> > On Mon, Nov 28, 2011 at 4:18 AM, Eugene Strokin [eug...@strokin.info](mailto:eug...@strokin.info)  
> > wrote:
> > 
> > > I'm getting strange exception. I'm getting it when running MLT query.  
> > > But the reason is actualy not related to MLT.  
> > > If I run search like
> > 
> > > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> > 
> > > I'm getting:
> > 
> > >
> 
> {"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8  
> f","exists":false}
> 
> > > As if there is no document with such ID.  
> > > But, if I run:
> > 
> > > [http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-).  
> > > ..
> > 
> > > I'm actually getting a document with such ID:
> > 
> > > {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
> > > 5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":
> > 
> > >
> 
> [{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d  
> 8f","\_score":
> 
> > > 9.77106, "\_source" :
> > 
> > >
> 
> {"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":............  
> .
> 
> > > the rest is truncated
> > 
> > > What could be the problem? Why I'm not getting the document from the  
> > > first query?
> > 
> > > Thanks in advance,  
> > > Eugene S.

---

<div class="post-metadata">

### Author: ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)
#### Post date: [November 28, 2011, 4:41pm UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/5 "2011-11-28T16:41:45Z")

</div>

Sorry, my bad,.. indexing was straight forward:  
Client client = new TransportClient()  
.addTransportAddress(new  
InetSocketTransportAddress("localhost", 9300));  
client.prepareIndex(  
"myind", "post", p.getPostId())  
.setSource(getContentBuilder(p))  
.execute()  
.actionGet();

Sorry again for my dumbness, but when you say gist a recreation, you  
mean to index a document with the same ID again?

On Nov 28, 11:25 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> You did not answer the question though, when you index the document, do you  
> use parent mapping or routing value? If you do, you need to provide the  
> value, if not, then gist a recreation.
> 
> -shay.banon
> 
> On Mon, Nov 28, 2011 at 5:40 PM, Eugene Strokin [eug...@strokin.info](mailto:eug...@strokin.info) wrote:
> 
> > I'm using just simple call like this:  
> > GetResponse response = clientProvider.getClient()  
> > .prepareGet("myind", "post",  
> > "5b92f025-3f7b-4429-8535-9a20efd55d8f")  
> > .execute()  
> > .actionGet();  
> > As well as  
> > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> > And actually delete gives me the same:  
> > All such requests (GET, DELETE) give me exist:false or document  
> > missing exception.  
> > But search (any kind, by ID or just text) returns the document.  
> > I've run few more tests, and this behavior is not consistent, some  
> > times I cannot reproduce the problem.  
> > But those documents which got returned by search, but not by get, I  
> > couldn't even get read of them, since Delete also fails to find them.  
> > What could be the problem? Or at least how I could force to remove  
> > those documents from search results?
> 
> > On Nov 28, 3:14 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > Are you using routing or parent mapping where post is a child mapping  
> > > (which uses routing)? If so, you need to provide the routing value when  
> > > doing a GET.
> 
> > > On Mon, Nov 28, 2011 at 4:18 AM, Eugene Strokin [eug...@strokin.info](mailto:eug...@strokin.info)  
> > > wrote:
> > > 
> > > > I'm getting strange exception. I'm getting it when running MLT query.  
> > > > But the reason is actualy not related to MLT.  
> > > > If I run search like
> 
> > > > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> > > > I'm getting:
> 
> > {"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8  
> > f","exists":false}
> 
> > > > As if there is no document with such ID.  
> > > > But, if I run:
> 
> > > > [http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-).  
> > > > ..
> 
> > > > I'm actually getting a document with such ID:
> 
> > > > {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
> > > > 5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":
> 
> > [{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d  
> > 8f","\_score":
> > 
> > > > 9.77106, "\_source" :
> 
> > {"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":............  
> > .
> > 
> > > > the rest is truncated
> 
> > > > What could be the problem? Why I'm not getting the document from the  
> > > > first query?
> 
> > > > Thanks in advance,  
> > > > Eugene S.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [November 28, 2011, 4:45pm UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/6 "2011-11-28T16:45:53Z")

</div>

A recreation can either be a simple curl recreation (  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)) or a simple Java main class that  
recreates the problem (index some data, do a get, and show that it does not  
work).

On Mon, Nov 28, 2011 at 6:41 PM, Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info) wrote:

> Sorry, my bad,.. indexing was straight forward:  
> Client client = new TransportClient()  
> .addTransportAddress(new  
> InetSocketTransportAddress("localhost", 9300));  
> client.prepareIndex(  
> "myind", "post", p.getPostId())  
> .setSource(getContentBuilder(p))  
> .execute()  
> .actionGet();
> 
> Sorry again for my dumbness, but when you say gist a recreation, you  
> mean to index a document with the same ID again?
> 
> On Nov 28, 11:25 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > You did not answer the question though, when you index the document, do  
> > you  
> > use parent mapping or routing value? If you do, you need to provide the  
> > value, if not, then gist a recreation.
> > 
> > -shay.banon
> > 
> > On Mon, Nov 28, 2011 at 5:40 PM, Eugene Strokin [eug...@strokin.info](mailto:eug...@strokin.info)  
> > wrote:
> > 
> > > I'm using just simple call like this:  
> > > GetResponse response = clientProvider.getClient()  
> > > .prepareGet("myind", "post",  
> > > "5b92f025-3f7b-4429-8535-9a20efd55d8f")  
> > > .execute()  
> > > .actionGet();  
> > > As well as  
> > > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> > 
> > > And actually delete gives me the same:  
> > > All such requests (GET, DELETE) give me exist:false or document  
> > > missing exception.  
> > > But search (any kind, by ID or just text) returns the document.  
> > > I've run few more tests, and this behavior is not consistent, some  
> > > times I cannot reproduce the problem.  
> > > But those documents which got returned by search, but not by get, I  
> > > couldn't even get read of them, since Delete also fails to find them.  
> > > What could be the problem? Or at least how I could force to remove  
> > > those documents from search results?
> > 
> > > On Nov 28, 3:14 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > 
> > > > Are you using routing or parent mapping where post is a child mapping  
> > > > (which uses routing)? If so, you need to provide the routing value  
> > > > when  
> > > > doing a GET.
> > 
> > > > On Mon, Nov 28, 2011 at 4:18 AM, Eugene Strokin \<eug...@strokin.info
> > 
> > > wrote:
> > > 
> > > > > I'm getting strange exception. I'm getting it when running MLT  
> > > > > query.  
> > > > > But the reason is actualy not related to MLT.  
> > > > > If I run search like
> > 
> > > > >
> 
> [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> 
> > > > > I'm getting:
> > 
> > >
> 
> {"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8
> 
> > > f","exists":false}
> > 
> > > > > As if there is no document with such ID.  
> > > > > But, if I run:
> > 
> > > > >
> 
> [http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-).
> 
> > > ..
> > 
> > > > > I'm actually getting a document with such ID:
> > 
> > > > > {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
> > > > > 5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":
> > 
> > >
> 
> [{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d
> 
> > > 8f","\_score":
> > > 
> > > > > 9.77106, "\_source" :
> > 
> > >
> 
> {"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":............
> 
> > > .
> > > 
> > > > > the rest is truncated
> > 
> > > > > What could be the problem? Why I'm not getting the document from  
> > > > > the  
> > > > > first query?
> > 
> > > > > Thanks in advance,  
> > > > > Eugene S.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [November 28, 2011, 4:48pm UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/7 "2011-11-28T16:48:58Z")

</div>

Also, you still did not answer my question :), do you use parent / child  
mapping for posts?

On Mon, Nov 28, 2011 at 6:45 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> A recreation can either be a simple curl recreation (  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)) or a simple Java main class that  
> recreates the problem (index some data, do a get, and show that it does not  
> work).
> 
> On Mon, Nov 28, 2011 at 6:41 PM, Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info)wrote:
> 
> > Sorry, my bad,.. indexing was straight forward:  
> > Client client = new TransportClient()  
> > .addTransportAddress(new  
> > InetSocketTransportAddress("localhost", 9300));  
> > client.prepareIndex(  
> > "myind", "post", p.getPostId())  
> > .setSource(getContentBuilder(p))  
> > .execute()  
> > .actionGet();
> > 
> > Sorry again for my dumbness, but when you say gist a recreation, you  
> > mean to index a document with the same ID again?
> > 
> > On Nov 28, 11:25 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > You did not answer the question though, when you index the document, do  
> > > you  
> > > use parent mapping or routing value? If you do, you need to provide the  
> > > value, if not, then gist a recreation.
> > > 
> > > -shay.banon
> > > 
> > > On Mon, Nov 28, 2011 at 5:40 PM, Eugene Strokin [eug...@strokin.info](mailto:eug...@strokin.info)  
> > > wrote:
> > > 
> > > > I'm using just simple call like this:  
> > > > GetResponse response = clientProvider.getClient()  
> > > > .prepareGet("myind", "post",  
> > > > "5b92f025-3f7b-4429-8535-9a20efd55d8f")  
> > > > .execute()  
> > > > .actionGet();  
> > > > As well as  
> > > > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> > > 
> > > > And actually delete gives me the same:  
> > > > All such requests (GET, DELETE) give me exist:false or document  
> > > > missing exception.  
> > > > But search (any kind, by ID or just text) returns the document.  
> > > > I've run few more tests, and this behavior is not consistent, some  
> > > > times I cannot reproduce the problem.  
> > > > But those documents which got returned by search, but not by get, I  
> > > > couldn't even get read of them, since Delete also fails to find them.  
> > > > What could be the problem? Or at least how I could force to remove  
> > > > those documents from search results?
> > > 
> > > > On Nov 28, 3:14 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > > 
> > > > > Are you using routing or parent mapping where post is a child  
> > > > > mapping  
> > > > > (which uses routing)? If so, you need to provide the routing value  
> > > > > when  
> > > > > doing a GET.
> > > 
> > > > > On Mon, Nov 28, 2011 at 4:18 AM, Eugene Strokin \<  
> > > > > eug...@strokin.info\>  
> > > > > wrote:
> > > > > 
> > > > > > I'm getting strange exception. I'm getting it when running MLT  
> > > > > > query.  
> > > > > > But the reason is actualy not related to MLT.  
> > > > > > If I run search like
> > > 
> > > > > >
> > 
> > [http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f](http://localhost:9200/myind/post/5b92f025-3f7b-4429-8535-9a20efd55d8f)
> > 
> > > > > > I'm getting:
> > > 
> > > >
> > 
> > {"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d8
> > 
> > > > f","exists":false}
> > > 
> > > > > > As if there is no document with such ID.  
> > > > > > But, if I run:
> > > 
> > > > > >
> > 
> > [http://localhost:9200/myind/\_search?q=postId:5b92f025-3f7b-4429-8535-](http://localhost:9200/myind/_search?q=postId:5b92f025-3f7b-4429-8535-).
> > 
> > > > ..
> > > 
> > > > > > I'm actually getting a document with such ID:
> > > 
> > > > > > {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":  
> > > > > > 5,"failed":0},"hits":{"total":1,"max\_score":9.77106,"hits":
> > > 
> > > >
> > 
> > [{"\_index":"myind","\_type":"post","\_id":"5b92f025-3f7b-4429-8535-9a20efd55d
> > 
> > > > 8f","\_score":
> > > > 
> > > > > > 9.77106, "\_source" :
> > > 
> > > >
> > 
> > {"postId":"5b92f025-3f7b-4429-8535-9a20efd55d8f","description":............
> > 
> > > > .
> > > > 
> > > > > > the rest is truncated
> > > 
> > > > > > What could be the problem? Why I'm not getting the document from  
> > > > > > the  
> > > > > > first query?
> > > 
> > > > > > Thanks in advance,  
> > > > > > Eugene S.

---

<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, 3:47am UTC](https://discuss.elastic.co/t/elasticsearchexception-document-missing/5986/8 "2017-07-06T03:47:15Z")

</div>


