From ce8efb0d93ef91d8459310205c1c476692122dd9 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Thu, 29 Jan 2015 07:35:18 +0000 Subject: [PATCH] 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 --- .../org/apache/solr/handler/component/RealTimeGetComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java b/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java index 3fd3be39648..64a8b61ac4e 100644 --- a/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java +++ b/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java @@ -177,7 +177,7 @@ public class RealTimeGetComponent extends SearchComponent int docid = searcher.getFirstMatch(new Term(idField.getName(), idBytes.get())); if (docid < 0) continue; - StoredDocument luceneDocument = searcher.doc(docid); + StoredDocument luceneDocument = searcher.doc(docid, rsp.getReturnFields().getLuceneFieldNames()); SolrDocument doc = toSolrDoc(luceneDocument, core.getLatestSchema()); if( transformer != null ) { transformer.transform(doc, docid);