# Mismatch results between kibana and python dsl

**URL:** <https://discuss.elastic.co/t/mismatch-results-between-kibana-and-python-dsl/162637>\
**Category:** Elasticsearch\
**Created:** [January 2, 2019, 10:52am UTC](https://discuss.elastic.co/t/mismatch-results-between-kibana-and-python-dsl/162637 "2019-01-02T10:52:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitzan\_Cohen](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@Nitzan\_Cohen](https://discuss.elastic.co/u/Nitzan_Cohen)\
**Post date:** [January 2, 2019, 10:52am UTC](https://discuss.elastic.co/t/mismatch-results-between-kibana-and-python-dsl/162637/1 "2019-01-02T10:52:39Z")

</div>

Im trying to search over a uuid. I created the json query in the dev tools, and used search api function with python's elasticsearch-dsl, and got different results.

this is what i wrote in the dev tool:

```
GET index_name/type_name/_search
{
  "query": {
    "term": {
      "uuid": {
        "value": "uuid-value-1234"
      }
    }
  }
}

```

this returned one document

this is my search with elasticsearch-dsl:  
es=Elasticsearch()

> > > r = Search(using=es, index='index\_name', doc\_type='type\_name').filter('term', uuid='uuid-value-1234')  
> > > result = r.execute()  
> > > result.hits.total  
> > > 0

Im wondering why is there a difference? is the api filtering something?  
thank you in advanced

---

<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:** [January 30, 2019, 10:52am UTC](https://discuss.elastic.co/t/mismatch-results-between-kibana-and-python-dsl/162637/2 "2019-01-30T10:52:43Z")

</div>

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