-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LUCENE-4198: add format description for term impacts to javadocs #115
Conversation
* <li>ImpactLength is the total length of CompetitiveFreqDelta and CompetitiveNormDelta | ||
* pairs. CompetitiveFreqDelta and CompetitiveNormDelta are used to safely skip score | ||
* calculation for uncompetitive documents; See {@link | ||
* org.apache.lucene.codecs.CompetitiveImpactAccumulator} for more details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added brief description about the impacts.
@@ -299,7 +306,7 @@ | |||
* positions. Some payloads and offsets will be separated out into .pos file, for performance | |||
* reasons. | |||
* <ul> | |||
* <li>PayFile(.pay): --> Header, <TermPayloads, TermOffsets?> | |||
* <li>PayFile(.pay): --> Header, <TermPayloads?, TermOffsets?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not related to LUCENE-4198 at all... but TermPayloads seems to be optional as well as TermOffsets.
lucene/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90PostingsWriter.java
Lines 328 to 333 in a9a3f65
if (writePayloads) { | |
pforUtil.encode(payloadLengthBuffer, payOut); | |
payOut.writeVInt(payloadByteUpto); | |
payOut.writeBytes(payloadBytes, 0, payloadByteUpto); | |
payloadByteUpto = 0; | |
} |
@jpountz Could you take a look at this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
https://issues.apache.org/jira/browse/LUCENE-4198 introduced term impacts to PostingsFormat; this is a follow-up to fix the format documentation ("SkipDatum" part) to reflect the changes.
latest javadocs (for .doc file)
modified javadocs with this patch (for .doc file)