# Elsaticsearch 6.3.1 provides different results on cloud and local despite using dfs\_query\_then\_fetch. Query using python's elasticsearch package

**URL:** <https://discuss.elastic.co/t/elsaticsearch-6-3-1-provides-different-results-on-cloud-and-local-despite-using-dfs-query-then-fetch-query-using-pythons-elasticsearch-package/156241>\
**Category:** Elasticsearch\
**Created:** [November 12, 2018, 7:15am UTC](https://discuss.elastic.co/t/elsaticsearch-6-3-1-provides-different-results-on-cloud-and-local-despite-using-dfs-query-then-fetch-query-using-pythons-elasticsearch-package/156241 "2018-11-12T07:15:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagard21](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sagard21](https://discuss.elastic.co/u/sagard21)\
**Post date:** [November 12, 2018, 7:15am UTC](https://discuss.elastic.co/t/elsaticsearch-6-3-1-provides-different-results-on-cloud-and-local-despite-using-dfs-query-then-fetch-query-using-pythons-elasticsearch-package/156241/1 "2018-11-12T07:15:44Z")

</div>

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:

```auto
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.

---

<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:** [December 10, 2018, 7:15am UTC](https://discuss.elastic.co/t/elsaticsearch-6-3-1-provides-different-results-on-cloud-and-local-despite-using-dfs-query-then-fetch-query-using-pythons-elasticsearch-package/156241/2 "2018-12-10T07:15:44Z")

</div>

Closed on December 10, 2018, 7:15am UTC

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