madrob commented on a change in pull request #2408: URL: https://github.com/apache/lucene-solr/pull/2408#discussion_r581277027
########## File path: solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java ########## @@ -813,8 +813,8 @@ private static SolrInputDocument toSolrInputDocument(SolrDocument doc, IndexSche if ((!sf.hasDocValues() && !sf.stored()) || schema.isCopyFieldTarget(sf)) continue; } for (Object val: doc.getFieldValues(fname)) { - if (val instanceof Field) { - Field f = (Field) val; + if (val instanceof IndexableField) { + IndexableField f = materialize((IndexableField) val); Review comment: you don't need this call to materialize, the next calls to `toObject` or `stringValue` will do that for you. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org