alessandrobenedetti commented on a change in pull request #476:
URL: https://github.com/apache/solr/pull/476#discussion_r786693763



##########
File path: solr/core/src/java/org/apache/solr/core/SchemaCodecFactory.java
##########
@@ -114,6 +117,25 @@ public DocValuesFormat getDocValuesFormatForField(String 
field) {
         }
         return super.getDocValuesFormatForField(field);
       }
+
+      @Override
+      public KnnVectorsFormat getKnnVectorsFormatForField(String field) {
+        final SchemaField schemaField = 
core.getLatestSchema().getFieldOrNull(field);
+        if (schemaField != null && schemaField.getType() instanceof 
DenseVectorField) {
+          DenseVectorField vectorType = (DenseVectorField) 
schemaField.getType();

Review comment:
       Done in a dedicated commit and included a null check! thanks!




-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to