Sitecore Max Lucene Query Clause Count

Posted by Xing Liu on 4/14/2016

If you have encountered this following error: 

Exception: Sitecore.ContentSearch.Linq.Lucene.Exceptions.TooManyClausesException.  

It’s probably because your lucene query exceeded the max clause count setting. You can adjust this setting from the Lucene default config file:

App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration

The default max count is 4096 in Sitecore 8.1.  You can adjust it based on your query size.

<setting name="ContentSearch.LuceneQueryClauseCount" value="4096" />

However, be cautious about using this setting since it might slow down the system performance after increasing the clause count.



CONTACT SYMSOFT SOLUTIONS

Looking for a partner who will exceed your expectations? Get in touch.

Name
*
Message
*
SYMSOFT SOLUTIONS 4090 Truxel Road, Suite 200 Sacramento, CA 95834
United States (916) 567-1740