I am using Elasticsearch for querying data. I query a medical term and in return i get the code for disease as output. Here is my sample query:

```
es.search(index="myindex", body={"query": {"match": {"text_field": "search_term"}}}, search_type='dfs_query_then_fetch')
# Expected output - ABC
# Local Output - ABC
# Output on Amazon EMR - XYZ

```

The problem is when I run it on cloud my output is totally different. 

I have exactly the same index on cloud and locally. Despite that the results on cloud are weird. We have an Amazon EMR instance where I have even tried re-creating the index. But no luck.

Local OS - Ubuntu 16.0.4
OS on Amazon EMR -Amazon Linux

Any help would be really appreciated.