Hmm, i'm not sure it's the highlighter alone. Depending on the query it can also get triggered by the spellcheck component. See below what happens with a maxBoolean = 16.
HTTP ERROR: 500 maxClauseCount is set to 16 org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 16 at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:153) at org.apache.lucene.search.spell.SpellChecker.add(SpellChecker.java:329) at org.apache.lucene.search.spell.SpellChecker.suggestSimilar(SpellChecker.java:260) at org.apache.solr.spelling.AbstractLuceneSpellChecker.getSuggestions(AbstractLuceneSpellChecker.java:140) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:140) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) On Tuesday 02 November 2010 16:26:00 Koji Sekiguchi wrote: > (10/11/02 23:14), Ken Stanley wrote: > > I've noticed in the stack trace that this exception occurs when trying to > > build the query for the highlighting; I've confirmed this by copying the > > params and changing hl=true to hl=false. Unfortunately, when using > > debugQuery=on, I do not see any details on what is going on with the > > highlighting portion of the query (after artificially increasing the > > maxBooleanClauses so the query will run). > > > > With all of that said, my question(s) to the list are: Is there a way to > > determine how exactly the highlighter is building its query (i.e., some > > sort of highlighting debug setting)? > > Basically I think highlighter uses main query, but try to rewrite it > before highlighting. > > > Is the behavior of highlighting in SOLR > > intended to be held to the same restrictions (maxBooleanClauses) as the > > query parser (even though the highlighting query is built internally)? > > I think so because maxBooleanClauses is a static variable. > > I saw your stack trace and glance at highlighter source, > my assumption is - highlighter tried to rewrite (expand) your > range queries to boolean query, even if you set requireFieldMatch to true. > > Can you try to query without the range query? If the problem goes away, > I think it is highlighter bug. Highlighter should skip the range query > when user set requireFieldMatch to true, because your range query is for > another field. If so, please open a jira issue. > > Koji -- Markus Jelsma - CTO - Openindex http://www.linkedin.com/in/markus17 050-8536600 / 06-50258350