mayya-sharipova commented on code in PR #12436: URL: https://github.com/apache/lucene/pull/12436#discussion_r1270997853
########## lucene/core/src/java/org/apache/lucene/index/IndexingChain.java: ########## @@ -621,6 +621,12 @@ private void initializeFieldInfo(PerField pf) throws IOException { final Sort indexSort = indexWriterConfig.getIndexSort(); validateIndexSortDVType(indexSort, pf.fieldName, s.docValuesType); } + if (s.vectorDimension != 0) { + validateMaxVectorDimension( + pf.fieldName, + s.vectorDimension, + indexWriterConfig.getCodec().knnVectorsFormat().getMaxDimensions()); + } Review Comment: @jpountz Thanks for your feedback, you are completely right, I missed about `PerFieldKnnVectorsFormat`. In 21ebd51dfc5cf34e3741365f1069d0bfc98afb69, I add field name to `getMaxDimensions` method. ########## lucene/core/src/java/org/apache/lucene/index/IndexingChain.java: ########## @@ -621,6 +621,12 @@ private void initializeFieldInfo(PerField pf) throws IOException { final Sort indexSort = indexWriterConfig.getIndexSort(); validateIndexSortDVType(indexSort, pf.fieldName, s.docValuesType); } + if (s.vectorDimension != 0) { + validateMaxVectorDimension( + pf.fieldName, + s.vectorDimension, + indexWriterConfig.getCodec().knnVectorsFormat().getMaxDimensions()); + } Review Comment: @jpountz Thanks for your feedback, you are completely right, I missed about `PerFieldKnnVectorsFormat`. In 21ebd51dfc5cf34e3741365f1069d0bfc98afb69, I've added a field name to `getMaxDimensions` method. -- 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...@lucene.apache.org 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