LuXugang commented on code in PR #967: URL: https://github.com/apache/lucene/pull/967#discussion_r907325756
########## lucene/core/src/java/org/apache/lucene/index/SortedSetDocValuesWriter.java: ########## @@ -415,34 +416,43 @@ public BytesRef lookupOrd(long ord) throws IOException { public long getValueCount() { return in.getValueCount(); } + + private void initCount() { + assert docID >= 0; + count = (int) ords.growableWriter.get(docID); + } } static final class DocOrds { final long[] offsets; final PackedLongValues ords; + final GrowableWriter growableWriter; Review Comment: Addressed in https://github.com/apache/lucene/pull/967/commits/48a1ec2c9e263769c60e24582e69c9cd8d00e382 -- 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