# Elastic Search Query DSL Getting full search result

**URL:** <https://discuss.elastic.co/t/elastic-search-query-dsl-getting-full-search-result/201625>\
**Category:** Elasticsearch\
**Created:** [September 30, 2019, 11:44am UTC](https://discuss.elastic.co/t/elastic-search-query-dsl-getting-full-search-result/201625 "2019-09-30T11:44:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek\_t](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vivek\_t](https://discuss.elastic.co/u/vivek_t)\
**Post date:** [September 30, 2019, 11:44am UTC](https://discuss.elastic.co/t/elastic-search-query-dsl-getting-full-search-result/201625/1 "2019-09-30T11:44:29Z")

</div>

Hi Team,

I am trying to search using queryDSL for the below condition  
{ "size" : 1000,  
"min\_score": 1,  
"query": {  
"bool": {  
"must": {  
"bool" : {  
"should": [  
{ "match": { "field1": "X" }},  
{ "match": { "field1": "Y" }}  
],  
"must" : { "match" : {"field2" : "Z" }}  
,"minimum\_should\_match" : 1  
}  
}  
}  
}  
}

but, my return count is not matching with the number of records,  
This result hit is showing max score of 10.66,  
Is there any way i can override this behaviour to return full records , my total records runs in range of 1500 but this query is returning only 520 results

---

<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:** [October 28, 2019, 11:44am UTC](https://discuss.elastic.co/t/elastic-search-query-dsl-getting-full-search-result/201625/2 "2019-10-28T11:44:36Z")

</div>

Closed on October 28, 2019, 11:44am UTC

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