lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zehua <bradjo...@yahoo.com>
Subject Distributed search has problem for facet
Date Fri, 17 Jul 2009 00:14:21 GMT

I use two shards in two different machines. Here is my URL
http://machine1:8900/solr/select/?shards=machine1:8900/solr,machine2:8900/solr&q=body\::dell&start=0&rows=10&facet=true&facet.field=authorname

This works great for 1.3.0 I just download the Solr 1.4 from trunk and it
breaks. If I run the query for individual node, the facet works great. If I
run distributed search in two machine without facet, it also works. The
following is the error from two machine:

Is there some setting different in 1.3 and 1.4

Error in first machine:
INFO: [] webapp=/solr path=/select
params={facet=true&fl=contentkey,score&start=0&q=body\::dell&f.authorname:.facet.limit=160&facet.field=authorname:&isShard=true&wt=javabin&fsv=true&rows=11&version=1}
hits=69011 status=0 QTime=5715 
Jul 16, 2009 5:11:41 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
	at
org.apache.solr.handler.component.FacetComponent.refineFacets(FacetComponent.java:331)
	at
org.apache.solr.handler.component.FacetComponent.handleResponses(FacetComponent.java:232)
	at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290)
	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1299)
	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)

Jul 16, 2009 5:11:41 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select/
params={facet=true&shards=dttest09:8900/solr,dttest10:8900/solr&start=0&q=body\::dell&facet.field=authorname:&rows=11}
status=500 QTime=6082 
Jul 16, 2009 5:11:41 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
	at
org.apache.solr.handler.component.FacetComponent.refineFacets(FacetComponent.java:331)
	at
org.apache.solr.handler.component.FacetComponent.handleResponses(FacetComponent.java:232)
	at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290)
	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1299)
	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)

Jul 16, 2009 5:11:41 PM org.apache.solr.common.SolrException log
SEVERE: Exception during facet
counts:org.apache.lucene.queryParser.ParseException: Expected identifier at
pos 19 str='{!terms=$authorname:__terms}authorname:'
	at
org.apache.solr.search.QueryParsing$StrParser.getId(QueryParsing.java:563)
	at
org.apache.solr.search.QueryParsing.parseLocalParams(QueryParsing.java:135)
	at
org.apache.solr.search.QueryParsing.getLocalParams(QueryParsing.java:191)
	at org.apache.solr.request.SimpleFacets.parseParams(SimpleFacets.java:91)
	at
org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:275)
	at
org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:170)
	at
org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
	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:1299)
	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.content(HttpConnection.java:835)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
	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)

Error in machine 2:
SEVERE: Exception during facet
counts:org.apache.lucene.queryParser.ParseException: Expected identifier at
pos 19 str='{!terms=$authorname:__terms}authorname:'
	at
org.apache.solr.search.QueryParsing$StrParser.getId(QueryParsing.java:563)
	at
org.apache.solr.search.QueryParsing.parseLocalParams(QueryParsing.java:135)
	at
org.apache.solr.search.QueryParsing.getLocalParams(QueryParsing.java:191)
	at org.apache.solr.request.SimpleFacets.parseParams(SimpleFacets.java:91)
	at
org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:275)
	at
org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:170)
	at
org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
	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:1299)
	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.content(HttpConnection.java:835)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
	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)

-- 
View this message in context: http://www.nabble.com/Distributed-search-has-problem-for-facet-tp24526631p24526631.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message