Can you provide a full stack trace of the exception? There's a maxClauseCount in solrconfig.xml that you can increase to work around the issue.
-Yonik http://lucidworks.com On Thu, Apr 18, 2013 at 7:31 AM, sawanverma <sawan.ve...@glassbeam.com> wrote: > Its quite confusing about this error. > > I had a situation where i have to turn on the highlighting. In some cases > though the number of docs found for a particular query was for example say > 2, the highlighting was coming only for 1. I did some checks and found that > that particular text searched was in the bigger document and was towards the > end of the document. > > So i increased the hl.maxAnalyzedChar from default value of 51200 to a > bigger value say 5000000. And then it started working, i mean now the > highlighting was working properly. > > Now, i have encountered one more problem with the same error. > > There is a document which is returning the maxClauseCount error when i do > search on content:*. The document is quite big big in size and the > hl.maxAnalyzedChars was default i.e. 51200. > > I tried decreasing that i found that the error is coming exactly at 31375 > char (this is did my setting the hl.maxAnalyzedChars to 31375. it worked > fine till 31374). > > Solutions are most welcome as i am in great need of this. > > Sample query is as below > http://localhost:8983/solr/test/select/?q=content:* AND > obs_date:[2010-01-01T00:00:00Z%20TO%202011-12-31T23:59:59Z]&fl=content&hl=true&hl.fl=content&hl.snippets=1&hl.fragsize=1500&hl.requireFieldMatch=true&hl.alternateField=content&hl.maxAlternateFieldLength=1500&hl.maxAnalyzedChars=31375&facet.limit=200&facet.mincount=1&start=64&rows=1&sort=obs_date%20desc > > Regards, > Sawan > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/TooManyClauses-maxClauseCount-is-set-to-1024-tp4056965.html > Sent from the Solr - User mailing list archive at Nabble.com.