mirror of https://github.com/apache/lucene.git
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:
parent
667fa3a270
commit
ce8efb0d93
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue