# Why does my search query return random hits?

**URL:** https://discuss.elastic.co/t/why-does-my-search-query-return-random-hits/20602
**Category:** Elasticsearch
**Created:** [November 6, 2014, 11:15am UTC](https://discuss.elastic.co/t/why-does-my-search-query-return-random-hits/20602 "2014-11-06T11:15:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mickael\_Bellengier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mickael_bellengier/32/48541_2.png) [@Mickael\_Bellengier](https://discuss.elastic.co/u/Mickael_Bellengier)
#### Post date: [November 6, 2014, 11:15am UTC](https://discuss.elastic.co/t/why-does-my-search-query-return-random-hits/20602/1 "2014-11-06T11:15:10Z")

</div>

Hi,

In Sense plugin, when I made this search query on my elasticsearch cluster :  
POST /ses\_tis\_v5\_picardie/d2be6477-f186-4b18-8ffd-eb1ccc3a13c2/\_search  
{  
"\_source": {  
"include": [  
"id",  
"datecrea",  
"datemaj",  
"supprimer",  
"structureid",  
"hdatemaj",  
"hmanip",  
"huserid",  
"histo",  
"lgs._",  
"ec367deb002d48c29252b6da76254929._",  
"23801132e18f481ebdd1255b9cf4c2aa.\*"  
]  
},  
"query": {  
"filtered": {  
"filter": {  
"and": {  
"filters": [  
{  
"nested": {  
"query": {  
"filtered": {  
"filter": {  
"nested": {  
"query": {  
"filtered": {  
"filter": {  
"fquery": {  
"query": {  
"match": {

"23801132e18f481ebdd1255b9cf4c2aa.6c52a85e04354a15bc7ae85f0e395035.value.commencePar":  
{  
"type": "phrase\_prefix",  
"query": "80"  
}  
}  
}  
}  
}  
}  
},  
"path":  
"23801132e18f481ebdd1255b9cf4c2aa.6c52a85e04354a15bc7ae85f0e395035"  
}  
}  
}  
},  
"path": "23801132e18f481ebdd1255b9cf4c2aa"  
}  
}

```
      ]
    }
  }
}

```

}  
}

I get 102485 hits (total field). I reexecute its and I get 102523 hits,  
next execution (1 second later) I get 102485.

How is it possible ?

PS : My cluster status is green and all the 20 primary shards and 20  
replicas are started and (green status).

Thanks

Mickaël BELLENGIER

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f0bb475d-40b6-4179-b001-29e74fe71961%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f0bb475d-40b6-4179-b001-29e74fe71961%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 12:51am UTC](https://discuss.elastic.co/t/why-does-my-search-query-return-random-hits/20602/2 "2017-07-06T00:51:51Z")

</div>


