agazzarini commented on code in PR #5328:
URL: https://github.com/apache/solr/pull/5328#discussion_r4612241667
##########
solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java:
##########
@@ -988,13 +1000,37 @@ public static SolrDocument toSolrDoc(
// TODO: do something more performant than this double conversion
Document doc = DocumentBuilder.toDocument(sdoc, schema, forInPlaceUpdate,
true);
+ Map<String, List<Number>> rawVectorFields = new HashMap<>();
+
// copy the stored fields only
Document out = new Document();
for (IndexableField f : doc.getFields()) {
+ SchemaField schemaField = schema.getFieldOrNull(f.name());
Review Comment:
Ok, extracted both conditional blocks into private methods
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]