Apache Solr open-source search software
SOLR-3518: Include final 'hits' in log information when aggregating a distibuted request
Chris M. Hostetter76059449d1aa
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 20a9d579ff3..0d232970948 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -137,6 +137,8 @@ Bug Fixes* SOLR-3699: Fixed some Directory leaks when there were errors during SolrCoreor SolrIndexWriter initialization. (hossman)+* SOLR-3518: Include final 'hits' in log information when aggregating a+ distibuted request (Markus Jelsma via hossman)Other Changes----------------------diff --git a/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java b/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.javaindex 98e5f470f96..6ae278d8744 100644--- a/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java@@ -863,8 +863,7 @@ public class QueryComponent extends SearchComponentqueue.insertWithOverflow(shardDoc);} // end for-each-doc-in-response} // end for-each-response--+// The queue now has 0 -> queuesize docs, where queuesize <= start + rows// So we want to pop the last documents off the queue to get// the docs offset -> queuesize@@ -880,6 +879,9 @@ public class QueryComponent extends SearchComponentresultIds.put(shardDoc.id.toString(), shardDoc);}+ // Add hits for distributed requests+ // https://issues.apache.org/jira/browse/SOLR-3518+ rb.rsp.addToLog("hits", numFound);SolrDocumentList responseDocs = new SolrDocumentList();if (maxScore!=null) responseDocs.setMaxScore(maxScore);