# Zero\_terms\_query problem

**URL:** <https://discuss.elastic.co/t/zero-terms-query-problem/10750>\
**Category:** Elasticsearch\
**Created:** [February 14, 2013, 11:47pm UTC](https://discuss.elastic.co/t/zero-terms-query-problem/10750 "2013-02-14T23:47:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sulemanmubarik](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sulemanmubarik](https://discuss.elastic.co/u/sulemanmubarik)\
**Post date:** [February 14, 2013, 11:47pm UTC](https://discuss.elastic.co/t/zero-terms-query-problem/10750/1 "2013-02-14T23:47:13Z")

</div>

Hi  
i am setting zero\_terms\_query in query i test it with all and none but i  
did not get any result.  
also i can see zero\_terms\_query in  
org.elasticsearch.index.query.MatchQueryParser but it is not in  
org.elasticsearch.index.query.MultiMatchQueryBuilder  
{  
"filtered": {  
"query": {  
"constant\_score": {  
"query": {  
"multi\_match": {  
"query": "twitter",  
"fields": [  
"authorName",  
"authorTags",  
"cnt\_en"  
],  
"type": "boolean",  
"operator": "AND",  
"use\_dis\_max": false  
}  
},  
"boost": 1,  
"zero\_terms\_query": "all"  
}  
},  
"filter": {  
"and": {  
"filters": [  
{  
"numeric\_range": {  
"publishedDate": {  
"from": 1358208000000,  
"to": 1361059199999,  
"include\_lower": true,  
"include\_upper": true  
}  
}  
}  
]  
}  
}  
}  
}

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:51am UTC](https://discuss.elastic.co/t/zero-terms-query-problem/10750/2 "2017-07-06T02:51:23Z")

</div>


