cancel
Showing results for 
Search instead for 
Did you mean: 

Add resource search gives an SOLR error

djgs
Champ in-the-making
Champ in-the-making
Hello,

When I try to add a ressource in an advanced workflow (searching for contents).
Alfresco gives an error:


2014-07-16 18:05:18,681  ERROR [solr.servlet.SolrDispatchFilter] [http-bio-8443-exec-1] org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 10000
        at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:153)
        at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:144)
        at org.apache.lucene.search.MultiPhraseQuery.rewrite(MultiPhraseQuery.java:259)
        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:438)
        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:438)
        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:438)
        at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:311)
        at org.apache.lucene.search.Query.weight(Query.java:98)
        at org.alfresco.solr.ContextAwareQuery.weight(ContextAwareQuery.java:110)
        at org.apache.lucene.search.Searcher.createWeight(Searcher.java:230)
        at org.apache.lucene.search.Searcher.search(Searcher.java:171)
        at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:988)
        at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:884)
        at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341)
        at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182)
        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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

Jul 16, 2014 6:05:18 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/alfresco] threw exception [06160015 Request failed 500 /solr/alfresco/alfresco?wt=json&fl=DBID%2Cscore&rows=500&df=TEXT&start=0&locale=en_US&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON] with root cause
org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 06160015 Request failed 500 /solr/alfresco/alfresco?wt=json&fl=DBID%2Cscore&rows=500&df=TEXT&start=0&locale=en_US&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON


I'm using version 4.2.c with SOLR.
I have already changed in alfresco-global.properties the lucene.query.maxClauseCount for a bigger value, but didn't work.

If someone has already surpassed the same problem please help.

Thanks,

Dália
1 REPLY 1

djgs
Champ in-the-making
Champ in-the-making
I have try to set lucene.query.maxClauses in alfresco-global.properties and also at repository.properties and it didn't change the error. What I'am missing?

I add this lines to properties files, save and resart Alfresco.

# The maximum number of clauses that are allowed in a lucene query
# alterado de 10000 para
lucene.query.maxClauses=1000000000