Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC59C1071D for ; Wed, 10 Apr 2013 22:31:09 +0000 (UTC) Received: (qmail 73323 invoked by uid 500); 10 Apr 2013 22:31:05 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 73271 invoked by uid 500); 10 Apr 2013 22:31:05 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 73260 invoked by uid 99); 10 Apr 2013 22:31:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 22:31:05 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of SRS0=eEKQZG=N5=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.134 as permitted sender) Received: from [65.254.253.134] (HELO mailout16.yourhostingaccount.com) (65.254.253.134) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 22:31:00 +0000 Received: from mailscan16.yourhostingaccount.com ([10.1.15.16] helo=mailscan16.yourhostingaccount.com) by mailout16.yourhostingaccount.com with esmtp (Exim) id 1UQ3XL-0000lr-5p for solr-user@lucene.apache.org; Wed, 10 Apr 2013 18:30:39 -0400 Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan16.yourhostingaccount.com with esmtp (Exim) id 1UQ3XK-00056l-Fu for solr-user@lucene.apache.org; Wed, 10 Apr 2013 18:30:38 -0400 Received: from authsmtp12.yourhostingaccount.com ([10.1.18.12]) by impout02.yourhostingaccount.com with NO UCE id NNWe1l00C0FdXoS01NWe0y; Wed, 10 Apr 2013 18:30:38 -0400 X-Authority-Analysis: v=2.0 cv=HIVB5/Rv c=1 sm=1 a=UdCbmyego4VUa/xJBgcoFg==:17 a=aQzbgH187woA:10 a=DyMVHXBLOEYA:10 a=3jZET7lWBKwA:10 a=8nJEP1OIZ-IA:10 a=jvYhGVW7AAAA:8 a=rCtPgTpxJoQA:10 a=mV9VRH-2AAAA:8 a=9I5xiGouAAAA:8 a=Fv2pIgKBGlfNSZ0AcE8A:9 a=wPNLvfGTeEIA:10 a=WLBM33Y17PoA:10 a=2fPOlPt4dusA:10 a=t1ijpx9AV50gTBtUFlM2vg==:117 X-EN-OrigOutIP: 10.1.18.12 X-EN-IMPSID: NNWe1l00C0FdXoS01NWe0y Received: from 207-237-114-232.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.114.232] helo=JackKrupansky) by authsmtp12.yourhostingaccount.com with esmtpa (Exim) id 1UQ3XK-00084E-Lw for solr-user@lucene.apache.org; Wed, 10 Apr 2013 18:30:38 -0400 Message-ID: <8B9861D4E0CA4A0AB661A4B8613F3D40@JackKrupansky> From: "Jack Krupansky" To: References: <1365632378983-4055172.post@n3.nabble.com> In-Reply-To: <1365632378983-4055172.post@n3.nabble.com> Subject: Re: NPE when faceting TEXTfield in a distributed search query Date: Wed, 10 Apr 2013 18:30:34 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:fc4a93e1349e680c52bdd723c0ab3ef6 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.114.232 X-EN-OrigHost: 207-237-114-232.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com X-Virus-Checked: Checked by ClamAV on apache.org Are you sure you want to facet on a text field??? That will facet on the individual terms, which isn't usually very useful. Usually, people want to facet on full phrases or entire strings, so they do a schema copyField from the text field to a string field and then facet on the string field. -- Jack Krupansky -----Original Message----- From: coolpriya5 Sent: Wednesday, April 10, 2013 6:19 PM To: solr-user@lucene.apache.org Subject: 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=10000&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 10000 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.