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