You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by si...@apache.org on 2020/10/27 02:39:18 UTC
[incubator-pinot] branch master updated: Compute absolute docId in
lucene collector (#6194)
This is an automated email from the ASF dual-hosted git repository.
siddteotia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 0f4ee68 Compute absolute docId in lucene collector (#6194)
0f4ee68 is described below
commit 0f4ee6814a5fa103f5b88d4df75b0968dc7ce641
Author: Sidd <si...@gmail.com>
AuthorDate: Mon Oct 26 19:37:42 2020 -0700
Compute absolute docId in lucene collector (#6194)
Co-authored-by: Siddharth Teotia <st...@steotia-mn1.linkedin.biz>
---
.../pinot/core/segment/index/readers/text/LuceneDocIdCollector.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pinot-core/src/main/java/org/apache/pinot/core/segment/index/readers/text/LuceneDocIdCollector.java b/pinot-core/src/main/java/org/apache/pinot/core/segment/index/readers/text/LuceneDocIdCollector.java
index b24667b..9d9fd35 100644
--- a/pinot-core/src/main/java/org/apache/pinot/core/segment/index/readers/text/LuceneDocIdCollector.java
+++ b/pinot-core/src/main/java/org/apache/pinot/core/segment/index/readers/text/LuceneDocIdCollector.java
@@ -67,7 +67,9 @@ public class LuceneDocIdCollector implements Collector {
@Override
public void collect(int doc) throws IOException {
- _docIds.add(_docIdTranslator.getPinotDocId(doc));
+ // Compute the absolute lucene docID across
+ // sub-indexes because that's how the lookup table in docIdTranslator is built
+ _docIds.add(_docIdTranslator.getPinotDocId(context.docBase + doc));
}
};
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org