[ https://issues.apache.org/jira/browse/LUCENE-8326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16490575#comment-16490575 ]
Alessandro Benedetti commented on LUCENE-8326: ---------------------------------------------- Hi [~dweiss], I am fixing the patch! In the meantime , what does this mean ? : * This method calls \{@link #setMaxDocFreq(int)} internally (both conditions cannot * be used at the same time). * */ public void setMaxDocFreqPct(int maxPercentage) { setMaxDocFreq(Math.toIntExact((long) maxPercentage * ir.maxDoc() / 100)); } Cheers > More Like This Params Refactor > ------------------------------ > > Key: LUCENE-8326 > URL: https://issues.apache.org/jira/browse/LUCENE-8326 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Alessandro Benedetti > Priority: Major > Attachments: LUCENE-8326.patch, LUCENE-8326.patch > > Time Spent: 10m > Remaining Estimate: 0h > > More Like This ca be refactored to improve the code readability, test > coverage and maintenance. > Scope of this Jira issue is to start the More Like This refactor from the > More Like This Params. > This Jira will not improve the current More Like This but just keep the same > functionality with a refactored code. > Other Jira issues will follow improving the overall code readability, test > coverage and maintenance. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org