mirror of https://github.com/apache/lucene.git
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:
parent
82414f13a7
commit
b8215fdec0
|
@ -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() ) {
|
||||||
|
|
Loading…
Reference in New Issue