lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: NPE when faceting TEXTfield in a distributed search query
Date Wed, 10 Apr 2013 22:30:34 GMT
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
Subject: NPE when faceting TEXTfield in a distributed search query


I have a nullable TextField with field type as follows(field
<fieldType name="lowercase_sort_missing_first" class="solr.TextField"
sortMissingFirst="true" positionIncrementGap="100">
<analyzer><tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/></analyzer>

field definition is:-
<field name="fun_group" type="lowercase_sort_missing_first" indexed="true"
stored="true" multiValued="false"/>

I am running a distributed search(using shards= param) across 13 shards
while faceting on fun_group with the following params:-

AND ((flag:1 OR flag:0)))) AND

I get Internal Server Error on shard6. In the logs, I see the NPE from

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:
Sent from the Solr - User mailing list archive at 

View raw message