SOLR-7050: realtime get should internally load only fields specified in fl

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1655540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2015-01-29 07:35:18 +00:00
parent 667fa3a270
commit ce8efb0d93
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ public class RealTimeGetComponent extends SearchComponent
int docid = searcher.getFirstMatch(new Term(idField.getName(), idBytes.get())); int docid = searcher.getFirstMatch(new Term(idField.getName(), idBytes.get()));
if (docid < 0) continue; if (docid < 0) continue;
StoredDocument luceneDocument = searcher.doc(docid); StoredDocument luceneDocument = searcher.doc(docid, rsp.getReturnFields().getLuceneFieldNames());
SolrDocument doc = toSolrDoc(luceneDocument, core.getLatestSchema()); SolrDocument doc = toSolrDoc(luceneDocument, core.getLatestSchema());
if( transformer != null ) { if( transformer != null ) {
transformer.transform(doc, docid); transformer.transform(doc, docid);