# TermsLookup Error too\_many\_clauses: maxClauseCount is set to 1024

**URL:** <https://discuss.elastic.co/t/termslookup-error-too-many-clauses-maxclausecount-is-set-to-1024/101309>\
**Category:** Elasticsearch\
**Created:** [September 21, 2017, 10:18am UTC](https://discuss.elastic.co/t/termslookup-error-too-many-clauses-maxclausecount-is-set-to-1024/101309 "2017-09-21T10:18:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarala.muralikrishna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sarala.muralikrishna/32/22363_2.png) [@sarala.muralikrishna](https://discuss.elastic.co/u/sarala.muralikrishna)\
**Post date:** [September 21, 2017, 10:18am UTC](https://discuss.elastic.co/t/termslookup-error-too-many-clauses-maxclausecount-is-set-to-1024/101309/1 "2017-09-21T10:18:04Z")

</div>

We are using Elastic cloud services and currently facing issue with too\_many\_clauses: maxClauseCount is set to 1024 when using termslookup functionality. below is the query we are using.

{  
"from": 0,  
"size": 10,  
"sort": [  
{  
"\_score": {  
"order": "desc"  
}  
},  
{  
"Artist.Raw": {  
"order": "asc"  
}  
},  
{  
"Title.Raw": {  
"order": "asc"  
}  
},  
{  
"Releasedate": {  
"order": "desc"  
}  
}  
],  
"\_source": {  
"includes": [  
"Id"  
]  
},  
"post\_filter": {  
"terms": {  
"Id.Raw": {  
"index": "bertuscampaigns",  
"type": "Campaigns",  
"id": 32980,  
"path": "ArticleIds"  
}  
}  
}  
}

I think we have more than 1024 articles in a campaign.

Any suggestions on how to resolve this?

Thanks in advance  
Murali

---

<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 19, 2017, 10:18am UTC](https://discuss.elastic.co/t/termslookup-error-too-many-clauses-maxclausecount-is-set-to-1024/101309/2 "2017-10-19T10:18:42Z")

</div>

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