mirror of https://github.com/apache/lucene.git
SOLR-3992: QuerySenderListener doesn't populate document cache
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1402389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
612b5f6707
commit
78b1e07dc9
|
@ -110,6 +110,10 @@ Bug Fixes
|
|||
* SOLR-3938: prepareCommit command omits commitData causing a failure to trigger
|
||||
replication to slaves. (yonik)
|
||||
|
||||
* SOLR-3992: QuerySenderListener doesn't populate document cache.
|
||||
(Shotaro Kamio, yonik)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ package org.apache.solr.core;
|
|||
|
||||
import org.apache.solr.request.SolrQueryRequest;
|
||||
import org.apache.solr.request.SolrRequestInfo;
|
||||
import org.apache.solr.response.ResultContext;
|
||||
import org.apache.solr.search.SolrIndexSearcher;
|
||||
import org.apache.solr.search.DocList;
|
||||
import org.apache.solr.search.DocIterator;
|
||||
|
@ -68,6 +69,9 @@ public class QuerySenderListener extends AbstractSolrEventListener {
|
|||
NamedList values = rsp.getValues();
|
||||
for (int i=0; i<values.size(); i++) {
|
||||
Object o = values.getVal(i);
|
||||
if (o instanceof ResultContext) {
|
||||
o = ((ResultContext)o).docs;
|
||||
}
|
||||
if (o instanceof DocList) {
|
||||
DocList docs = (DocList)o;
|
||||
for (DocIterator iter = docs.iterator(); iter.hasNext();) {
|
||||
|
|
Loading…
Reference in New Issue