# Elasticsearch returning a document that is missing a term

**URL:** <https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941>\
**Category:** Elasticsearch\
**Created:** [April 20, 2018, 10:39pm UTC](https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941 "2018-04-20T22:39:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harirajd](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@harirajd](https://discuss.elastic.co/u/harirajd)\
**Post date:** [April 20, 2018, 10:39pm UTC](https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941/1 "2018-04-20T22:39:40Z")

</div>

I am looking for 2 terms in a document (innovu and implement) by using the following query in Kibana:  
GET esdbfindcases/esdbfindcases\_map/500d000000sOxzuAAC/\_explain  
{  
"query": {  
"bool": {

```
                    "must": [

                        {"terms": {"google:content": ["innovu", "implement"]}}

                    ]

                }
            }

```

}  
It returns a match as below:  
{  
"\_index": "esdbfindcases",  
"\_type": "esdbfindcases\_map",  
"\_id": "500d000000sOxzuAAC",  
"matched": true,  
"explanation": {  
"value": 1,  
"description": "ConstantScore(google:content:implement google:content:innovu)",  
"details": []  
}  
}

But when I run:  
GET esdbfindcases/esdbfindcases\_map/5000V000017hoDrQAI?pretty

I get the document there is no implement in the entire document. What could be going on?

Regards,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 21, 2018, 4:50am UTC](https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941/2 "2018-04-21T04:50:05Z")

</div>

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

<div class="post-metadata">

**Author:** ![harirajd](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@harirajd](https://discuss.elastic.co/u/harirajd)\
**Post date:** [April 23, 2018, 2:49pm UTC](https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941/3 "2018-04-23T14:49:45Z")

</div>

My upload into Elasticsearch if fairly large. I cannot put it in a script. Is there a way I could upload files. I could then let you know the details of how to reproduce the problem.

Regards,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 24, 2018, 7:00am UTC](https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941/4 "2018-04-24T07:00:58Z")

</div>

> My upload into Elasticsearch if fairly large.

Sure but you mentioned that:

> I get the document there is no implement in the entire document

So may be just create a recreation script with a single document.

---

<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:** [May 22, 2018, 7:01am UTC](https://discuss.elastic.co/t/elasticsearch-returning-a-document-that-is-missing-a-term/128941/5 "2018-05-22T07:01:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
