cpoerschke commented on code in PR #13757:
URL: https://github.com/apache/lucene/pull/13757#discussion_r1754559052
##########
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:
> ... when setter is totally not needed by anyone.
There is some residual setter use --
https://github.com/search?q=repo%3Aapache%2Flucene%20setDiscountOverlaps&type=code
-- let me see what it would take to get rid of it.
--
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]