mayya-sharipova commented on code in PR #992: URL: https://github.com/apache/lucene/pull/992#discussion_r914172979
########## lucene/core/src/java/org/apache/lucene/codecs/perfield/PerFieldKnnVectorsFormat.java: ########## @@ -94,17 +95,61 @@ public KnnVectorsReader fieldsReader(SegmentReadState state) throws IOException private class FieldsWriter extends KnnVectorsWriter { private final Map<KnnVectorsFormat, WriterAndSuffix> formats; private final Map<String, Integer> suffixes = new HashMap<>(); + private final Map<KnnVectorsWriter, Collection<String>> writersForFields = + new IdentityHashMap<>(); private final SegmentWriteState segmentWriteState; + // if there is a single writer, cache it for faster indexing + private KnnVectorsWriter singleWriter; Review Comment: Addressed in 2f58350081902bfc13cb02424343ab805c02b0a5 -- 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