dsmiley commented on code in PR #1557: URL: https://github.com/apache/solr/pull/1557#discussion_r1179684987
########## solr/core/src/java/org/apache/solr/handler/admin/IndexSizeEstimator.java: ########## @@ -384,16 +386,17 @@ private void estimateTermVectors(Map<String, Object> result) throws IOException for (LeafReaderContext leafReaderContext : reader.leaves()) { LeafReader leafReader = leafReaderContext.reader(); Bits liveDocs = leafReader.getLiveDocs(); + TermVectors termVectors = leafReader.termVectors(); for (int docId = 0; docId < leafReader.maxDoc(); docId += samplingStep) { if (liveDocs != null && !liveDocs.get(docId)) { continue; } - Fields termVectors = leafReader.getTermVectors(docId); - if (termVectors == null) { + Fields vectors = termVectors.get(docId); + if (vectors == null) { Review Comment: Why change the variable name? "vectors" is becoming a more ambiguous word in recent times ("vector search") -- 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