NPE when faceting TEXTfield in a distributed search query
Hi, I have a nullable TextField with field type as follows(field name=fun_group):- field definition is:- I am running a distributed search(using shards= param) across 13 shards while faceting on fun_group with the following params:- http:///solr/mycore/select?facet=true&facet.field=fun_group&facet.mincount=1&rows=0&facet.limit=1&facet.offset=0&q=(((my_id:4024 AND ((flag:1 OR flag:0 AND class_id:2604)&shards=/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore,/solr/mycore I get Internal Server Error on shard6. In the logs, I see the NPE from org.apache.solr.servlet.SolrDispatchFilter. If I change the facet.limit from 1 to 5000 keeping the facet.offset=0,there are no exceptions. Now again if try facet.limit=5000 and facet.offset=5000 , I get the same exception. I tried facet.limit=4000 and facet.offset=5000, it worked fine. Please help -- View this message in context: http://lucene.472066.n3.nabble.com/NPE-when-faceting-TEXTfield-in-a-distributed-search-query-tp4055172.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: NPE when faceting TEXTfield in a distributed search query
Number of values fun_group on shard 6 = 48000 Max length of fun_group is 20 chars If I run the facet on just shard6 it doesn't error out no matter the facet.limit. Also this query returns results only from shard 6 since the my_id:4024 belongs to shard 6. -- View this message in context: http://lucene.472066.n3.nabble.com/NPE-when-faceting-TEXTfield-in-a-distributed-search-query-tp4055172p4055185.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: NPE when faceting TEXTfield in a distributed search query
Solr Version is 3.4. As for stacktrace, I tried setting logger level to FINEST on the solr admin logging page and it still doesn't print the stacktrace. All I get are one liners:- 2013-04-10 17:09:59,889 [http--18] ERROR [Marker: ] org.apache.solr.core.SolrCore : java.lang.NullPointerException 2013-04-10 17:09:59,890 [http--18] INFO [Marker: ] org.apache.solr.core.SolrCore : [catalog] webapp=/solr path=/select params={} status=500 QTime=1 2013-04-10 17:09:59,890 [http-xxx-18] ERROR [Marker: ] org.apache.solr.servlet.SolrDispatchFilter : java.lang.NullPointerException -- View this message in context: http://lucene.472066.n3.nabble.com/NPE-when-faceting-TEXTfield-in-a-distributed-search-query-tp4055172p4055189.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: NPE when faceting TEXTfield in a distributed search query
I'm using tomcat. Also in such a case, why wouldn't the same error occur when I run the same query on shard 6 alone? Is this a limitation of distributed search? Shard 6 is the only shard that has data for this query. -- View this message in context: http://lucene.472066.n3.nabble.com/NPE-when-faceting-TEXTfield-in-a-distributed-search-query-tp4055172p4055208.html Sent from the Solr - User mailing list archive at Nabble.com.