# Different query result between http and kibana

**URL:** <https://discuss.elastic.co/t/different-query-result-between-http-and-kibana/246107>\
**Category:** Elasticsearch\
**Created:** [August 24, 2020, 11:39am UTC](https://discuss.elastic.co/t/different-query-result-between-http-and-kibana/246107 "2020-08-24T11:39:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent2mots](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent2mots/32/55226_2.png) [@vincent2mots](https://discuss.elastic.co/u/vincent2mots)\
**Post date:** [August 24, 2020, 11:39am UTC](https://discuss.elastic.co/t/different-query-result-between-http-and-kibana/246107/1 "2020-08-24T11:39:42Z")

</div>

Hi experts,

I'm trying to undestand something with a query result but I still don't get it...

I have a index (td\_movies) with a lot of movies. I want to search for the movies where the title contains "star" or "wars".

In http, I make the following query :

> [http://192.168.15.129:9200/td\_movies/\_search?q=fields.title:Star+Wars](http://192.168.15.129:9200/td_movies/_search?q=fields.title:Star+Wars)

It gives me 32 hits.

But if I try with Kibana and the following query :

> GET /td\_movies/\_search  
> {  
> "query": {  
> "match": {  
> "fields.title": "Star Wars"  
> }  
> }  
> }

I get "only" 29 hits. Why is there any difference in the result? The queries seems alike for me

Any ideas?

Thanks!

---

<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:** [August 24, 2020, 2:16pm UTC](https://discuss.elastic.co/t/different-query-result-between-http-and-kibana/246107/2 "2020-08-24T14:16:42Z")

</div>

Hi Vincent.

The curl query is most likely translated to a query string query and not a match query.  
I think the match query you wrote should be equivalent to:

```
http://192.168.15.129:9200/td_movies/_search?q=fields.title:(Star%20Wars)
```

---

<div class="post-metadata">

**Author:** ![vincent2mots](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent2mots/32/55226_2.png) [@vincent2mots](https://discuss.elastic.co/u/vincent2mots)\
**Post date:** [August 24, 2020, 6:33pm UTC](https://discuss.elastic.co/t/different-query-result-between-http-and-kibana/246107/3 "2020-08-24T18:33:03Z")

</div>

Thanks @dadoonet! You're right!

---

<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:** [September 21, 2020, 6:33pm UTC](https://discuss.elastic.co/t/different-query-result-between-http-and-kibana/246107/4 "2020-09-21T18:33:06Z")

</div>

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