cpoerschke commented on code in PR #13757:
URL: https://github.com/apache/lucene/pull/13757#discussion_r1755093836
##########
lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java:
##########
@@ -88,9 +89,41 @@
* @lucene.experimental
*/
public abstract class Similarity {
- /** Sole constructor. (For invocation by subclass constructors, typically
implicit.) */
- // Explicitly declared so that we have non-empty javadoc
- protected Similarity() {}
+ /**
+ * True if overlap tokens (tokens with a position of increment of zero) are
discounted from the
+ * document's length.
+ */
+ private boolean discountOverlaps = true;
Review Comment:
https://github.com/apache/lucene/pull/13757/commits/44c3f76ffa2b26f746aa2c59aef8649406e01af5
removes the residual setter use, seems a bit ugly but oh well.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]