solrj: allow facet parsing to proceed even if no main doclist

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-10-13 14:10:13 +00:00
parent 82414f13a7
commit b8215fdec0
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class QueryResponse extends SolrResponseBase
_facetFields = new ArrayList<FacetField>( ff.size() ); _facetFields = new ArrayList<FacetField>( ff.size() );
_limitingFacets = new ArrayList<FacetField>( ff.size() ); _limitingFacets = new ArrayList<FacetField>( ff.size() );
long minsize = _results.getNumFound(); long minsize = _results == null ? Long.MAX_VALUE :_results.getNumFound();
for( Map.Entry<String,NamedList<Number>> facet : ff ) { for( Map.Entry<String,NamedList<Number>> facet : ff ) {
FacetField f = new FacetField( facet.getKey() ); FacetField f = new FacetField( facet.getKey() );
for( Map.Entry<String, Number> entry : facet.getValue() ) { for( Map.Entry<String, Number> entry : facet.getValue() ) {