agazzarini commented on code in PR #5328:
URL: https://github.com/apache/solr/pull/5328#discussion_r4610793758


##########
solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java:
##########
@@ -876,7 +884,11 @@ private static SolrInputDocument 
toSolrInputDocument(SolrDocument doc, IndexSche
       boolean fieldArrayListCreated = false;
       SchemaField sf = schema.getFieldOrNull(fname);
       if (sf != null) {
-        if ((!sf.hasDocValues() && !sf.stored()) || 
schema.isCopyFieldTarget(sf)) continue;
+        if ((!sf.hasDocValues() && !sf.stored() && !sf.useRawVectorsAsStored())
+            || schema.isCopyFieldTarget(sf)) continue;
+        if (sf.getType() instanceof DenseVectorField) {
+          out.setField(fname, new ArrayList<>());
+        }

Review Comment:
   I agree



-- 
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]

Reply via email to